We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94f0e68 commit a92165eCopy full SHA for a92165e
.github/workflows/build.yml
@@ -1,19 +1,13 @@
1
-name: build
2
-
3
-on: [push, pull_request]
4
5
-permissions:
6
- contents: write
+name: Build, deploy and release
7
8
jobs:
9
build:
10
- name: build
11
runs-on: ubuntu-latest
12
permissions:
13
pages: write
14
id-token: write
+ contents: write
15
steps:
16
17
- name: setup-alex-happy
18
run: |
19
pushd "$(mktemp -d)"
@@ -101,7 +95,7 @@ jobs:
101
95
path: pandoc-wasm-${{ env.VERSION }}.zip
102
96
103
97
- name: Upload to release
104
- if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
98
+ if: ${{ github.event_name == 'release' }}
105
99
uses: svenstaro/upload-release-action@v2
106
100
with:
107
repo_token: ${{ secrets.GITHUB_TOKEN }}
0 commit comments