Skip to content

Commit 6105fe6

Browse files
Fix release workflow
1 parent f5eee25 commit 6105fe6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
name: Build
22

33
on:
4-
create:
5-
tags:
64
push:
7-
branches:
8-
- main
5+
branches: [main]
6+
tags: ['*']
97
pull_request:
108

119
jobs:
@@ -43,5 +41,7 @@ jobs:
4341
path: build/libxml2-wasm32-unknown-wasip1-threads.tar.gz
4442
- name: Release
4543
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4646
run: |
4747
gh release create ${{ github.ref }} build/libxml2-wasm32-unknown-wasi.tar.gz build/libxml2-wasm32-unknown-wasip1-threads.tar.gz

0 commit comments

Comments
 (0)