Skip to content

Commit 8027756

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

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: echo "RELEASE_TAG=$(date +'%Y-%m-%d-%H%M%S')" >> $GITHUB_ENV
82+
# if: ${{ github.event_name == 'workflow_dispatch' }}
83+
84+
- name: Create GitHub release
85+
uses: actions/create-release@v1
86+
# if: ${{ github.event_name == 'workflow_dispatch' }}
87+
with:
88+
tag_name: ${{ env.RELEASE_TAG }}
89+
files:
90+
gzip-files.zip
91+
bzip2-files.zip
92+
env:
93+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)