-
Notifications
You must be signed in to change notification settings - Fork 12
39 lines (33 loc) · 1022 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Release
on:
push:
tags: ['v[0-9]+.[0-9]+.[0-9]+*']
env:
LIBRARY_PATH: addons/godot-wasm/bin
RELEASE_ASSET: asset-library.zip
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Clean Binaries
run: rm -rf ${{ github.workspace }}/${{ env.LIBRARY_PATH }}
- name: Download Artifact
# Non-standard download action required for cross-workflow downloads
uses: dawidd6/action-download-artifact@v2
with:
workflow: addon.yml
commit: ${{ github.sha }}
path: ${{ github.workspace }}/${{ env.LIBRARY_PATH }}
- name: Prepare Asset
run: |
mkdir godot-wasm
mv addons godot-wasm
cd ${{ github.workspace }}
zip -r ${{ env.RELEASE_ASSET }} godot-wasm
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: ${{ github.workspace }}/${{ env.RELEASE_ASSET }}