Skip to content

Commit 4589e28

Browse files
committed
test release
1 parent 63643e4 commit 4589e28

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,23 @@ jobs:
1818
target: wasm32-wasip1
1919
- name: Build
2020
run: make plugin
21-
- name: Release
22-
uses: softprops/action-gh-release@v2
23-
with:
24-
files: plugin/**
25-
21+
22+
- name: Create draft release
23+
run: |
24+
set +e
25+
echo "Creating release $VERSION"
26+
gh release create $VERSION --draft --title "$VERSION"
27+
env:
28+
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
VERSION: ${{ github.event.inputs.version }}
30+
31+
- name: Push build artifact to release
32+
run: |
33+
set +e
34+
zip -j plugin/plugin-wasm-rust-demo-$VERSION.zip .traefik.yml plugin/plugin.wasm LICENSE
35+
gh release upload $VERSION ./plugin/plugin-wasm-rust-demo-$VERSION.zip --clobber
36+
env:
37+
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
VERSION: ${{ github.event.inputs.version }}
39+
2640

0 commit comments

Comments
 (0)