Skip to content

Commit cd24442

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

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/generate.yml

+20-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,22 @@ jobs:
7575
with:
7676
name: bzip2-files
7777
path: bzip2-files.zip
78+
79+
release:
80+
runs-on: ubuntu-latest
81+
needs: generate
82+
if: ${{ github.event_name == 'workflow_dispatch' }}
83+
steps:
84+
- name: Set tag
85+
id: set_tag
86+
run: echo "RELEASE_TAG=$(date +'%Y-%m-%d-%H%M%S')" >> $GITHUB_ENV
87+
88+
- name: Create GitHub release
89+
uses: softprops/action-gh-release@v1
90+
with:
91+
tag_name: ${{ env.RELEASE_TAG }}
92+
files:
93+
$GITHUB_WORKSPACE/gzip-files.zip
94+
$GITHUB_WORKSPACE/bzip2-files.zip
95+
env:
96+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)