Skip to content

Commit dc5f575

Browse files
committed
Update GitHub Actions workflow to trigger releases on version tag pushes and maintain success condition for workflow runs
1 parent f43cfa7 commit dc5f575

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@ on:
55
workflows: ["CI"]
66
types:
77
- completed
8-
branches:
9-
- stable
8+
push:
9+
tags:
10+
- v*
11+
12+
permissions:
13+
contents: write
1014

1115
jobs:
1216
release:
13-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
17+
if: |
18+
(github.event.workflow_run.conclusion == 'success' && github.event_name == 'workflow_run') ||
19+
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
1420
runs-on: ubuntu-latest
1521
permissions:
1622
contents: write
@@ -34,7 +40,7 @@ jobs:
3440
for platform in "${PLATFORMS[@]}"; do
3541
OS=${platform%/*}
3642
ARCH=${platform#*/}
37-
output_name="releases/tinyass-${OS}-${ARCH}"
43+
output_name="releases/squirrelzip-${OS}-${ARCH}"
3844
if [ $OS = "windows" ]; then
3945
output_name="$output_name.exe"
4046
fi

0 commit comments

Comments
 (0)