Skip to content

Commit 55b82db

Browse files
committed
release nightly-avalonia on re_avalonia branch
1 parent 91bef4c commit 55b82db

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Release
2+
3+
on: [workflow_call]
4+
5+
jobs:
6+
release:
7+
if: github.ref == 'refs/heads/re_avalonia'
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Delete previous nightly-avalonia release
11+
run: |
12+
gh release --repo ${{ github.repository }} delete nightly-avalonia --cleanup-tag
13+
env:
14+
GH_TOKEN: ${{ github.token }}
15+
continue-on-error: true # In case the release doesn't exist yet
16+
- name: Checkout repo
17+
uses: actions/checkout@v4
18+
with:
19+
path: src
20+
fetch-depth: 0
21+
- name: Create nightly-avalonia tag
22+
run: |
23+
git -C src tag nightly-avalonia
24+
git -C src push origin nightly-avalonia
25+
- name: Download Artifacts
26+
uses: actions/download-artifact@v4
27+
with:
28+
path: bin
29+
- name: Release info
30+
id: release_info
31+
run: |
32+
echo "now=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
33+
echo "message=$(git -C src log -1 --pretty=%s)" >> $GITHUB_OUTPUT
34+
echo 'files<<EOF' >> $GITHUB_OUTPUT
35+
find bin -name '*.tar.gz' >> $GITHUB_OUTPUT
36+
echo 'EOF' >> $GITHUB_OUTPUT
37+
- name: Create nightly-avalonia release
38+
uses: softprops/action-gh-release@v2
39+
with:
40+
prerelease: true
41+
tag_name: nightly-avalonia
42+
name: Z64Utils nightly-avalonia ${{ steps.release_info.outputs.now }}
43+
body: |
44+
Nightly build of Z64Utils Avalonia
45+
${{ steps.release_info.outputs.message }}
46+
files: |
47+
${{ steps.release_info.outputs.files }}

.github/workflows/push.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ jobs:
1010
nightly-release:
1111
needs: build
1212
uses: ./.github/workflows/nightly-release.yml
13+
nightly-avalonia-release:
14+
needs: build
15+
uses: ./.github/workflows/nightly-avalonia-release.yml

0 commit comments

Comments
 (0)