Make the file name repo aware
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
name: Create Archive
|
name: Create Archive
|
||||||
run-name: ${{ gitea.actor }} is making a zip archive
|
run-name: ${{ gitea.actor }} is making a zip archive
|
||||||
on: [workflow_dispatch ]
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: 'Package Version'
|
||||||
|
required: true
|
||||||
|
default: '0.0.0'
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
zip:
|
zip:
|
||||||
@@ -14,12 +21,12 @@ jobs:
|
|||||||
- name: Checkout LFS objects
|
- name: Checkout LFS objects
|
||||||
run: git lfs checkout
|
run: git lfs checkout
|
||||||
|
|
||||||
- name: Get current date
|
- name: Get current repo
|
||||||
id: date
|
id: repo
|
||||||
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
|
run: echo "::set-output name=repo::$(result=$(echo $GITHUB_REPOSITORY | cut -d'/')"
|
||||||
|
|
||||||
- name: Zip repository
|
- name: Zip repository
|
||||||
run: zip -r Beefycuga-${{ steps.date.outputs.date }}.zip . -x "*.git*"
|
run: zip -r {{ steps.repo.outputs.repo }}-${{ steps.date.outputs.date }}.zip . -x "*.git*"
|
||||||
|
|
||||||
- name: Release artifacts to Gitea repository
|
- name: Release artifacts to Gitea repository
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
@@ -27,6 +34,6 @@ jobs:
|
|||||||
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
||||||
with:
|
with:
|
||||||
files: |-
|
files: |-
|
||||||
Beefycuga-${{ steps.date.outputs.date }}.zip
|
{{ steps.repo.outputs.repo }}-${{ inputs.version }}.zip
|
||||||
tag_name: ${{ steps.date.outputs.date }}
|
tag_name: ${{ inputs.version }}
|
||||||
name: Release - ${{ steps.date.outputs.date }}
|
name: Release - ${{ inputs.version }}
|
||||||
Reference in New Issue
Block a user