Skip to content

Commit a92165e

Browse files
committed
reorganize github actions
1 parent 94f0e68 commit a92165e

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
1-
name: build
2-
3-
on: [push, pull_request]
4-
5-
permissions:
6-
contents: write
1+
name: Build, deploy and release
72

83
jobs:
94
build:
10-
name: build
115
runs-on: ubuntu-latest
126
permissions:
137
pages: write
148
id-token: write
9+
contents: write
1510
steps:
16-
1711
- name: setup-alex-happy
1812
run: |
1913
pushd "$(mktemp -d)"
@@ -101,7 +95,7 @@ jobs:
10195
path: pandoc-wasm-${{ env.VERSION }}.zip
10296

10397
- name: Upload to release
104-
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
98+
if: ${{ github.event_name == 'release' }}
10599
uses: svenstaro/upload-release-action@v2
106100
with:
107101
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)