Make the file name repo aware
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
name: Create 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:
|
||||
zip:
|
||||
@@ -14,12 +21,12 @@ jobs:
|
||||
- name: Checkout LFS objects
|
||||
run: git lfs checkout
|
||||
|
||||
- name: Get current date
|
||||
id: date
|
||||
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
|
||||
- name: Get current repo
|
||||
id: repo
|
||||
run: echo "::set-output name=repo::$(result=$(echo $GITHUB_REPOSITORY | cut -d'/')"
|
||||
|
||||
- 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
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
@@ -27,6 +34,6 @@ jobs:
|
||||
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
||||
with:
|
||||
files: |-
|
||||
Beefycuga-${{ steps.date.outputs.date }}.zip
|
||||
tag_name: ${{ steps.date.outputs.date }}
|
||||
name: Release - ${{ steps.date.outputs.date }}
|
||||
{{ steps.repo.outputs.repo }}-${{ inputs.version }}.zip
|
||||
tag_name: ${{ inputs.version }}
|
||||
name: Release - ${{ inputs.version }}
|
||||
Reference in New Issue
Block a user