Skip to content

Commit c36fb5b

Browse files
committed
release when manually triggered
1 parent ba754c7 commit c36fb5b

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/generate.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
generate:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout sources
1515
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
@@ -75,3 +75,19 @@ jobs:
7575
with:
7676
name: bzip2-files
7777
path: bzip2-files.zip
78+
79+
- name: Set tag
80+
id: set_tag
81+
run: |
82+
echo "RELEASE_TAG=$(date +'%Y-%m-%d-%H%M%S')" >> $GITHUB_ENV
83+
ls
84+
# if: ${{ github.event_name == 'workflow_dispatch' }}
85+
86+
- name: Create GitHub release
87+
uses: softprops/action-gh-release@v1
88+
# if: ${{ github.event_name == 'workflow_dispatch' }}
89+
with:
90+
tag_name: ${{ env.RELEASE_TAG }}
91+
files: |
92+
gzip-files.zip
93+
bzip2-files.zip

0 commit comments

Comments
 (0)