Skip to content

Commit 65ce868

Browse files
author
John Shaffer
committed
Create releases and upload plugin zip for v* tags
1 parent 7a25ea5 commit 65ce868

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,30 @@ jobs:
2929
- name: Build plugin zip
3030
run: |
3131
nix develop -c bash tools/build_release.sh wp2static
32+
33+
- name: Upload artifact
34+
if: startsWith(github.ref, 'refs/tags/v')
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: Plugin
38+
path: plugin.zip
39+
40+
release:
41+
name: Create Release
42+
needs: build
43+
if: startsWith(github.ref, 'refs/tags/v')
44+
runs-on: ubuntu-latest
45+
46+
steps:
47+
- name: Download artifact
48+
uses: actions/download-artifact@v4
49+
with:
50+
name: Plugin
51+
path: .
52+
53+
- name: Create GitHub Release
54+
uses: softprops/action-gh-release@v2
55+
with:
56+
files: plugin.zip
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)