Skip to content

Commit 13eb901

Browse files
committed
added unofficial build and release for main branch
1 parent 0a2151a commit 13eb901

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Create Unofficial Release with Artifacts
2+
3+
on:
4+
push:
5+
# Or on tags only, e.g. 'v*.*.*'
6+
branches:
7+
- main
8+
workflow_dispatch: # Allows manual trigger
9+
10+
jobs:
11+
build-and-release:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repo with submodules
16+
uses: actions/checkout@v4
17+
with:
18+
submodules: recursive
19+
20+
- name: Run builder image
21+
run: |
22+
docker run --rm \
23+
-u $(id -u):$(id -g) \
24+
-v ${{ github.workspace }}:/build/source \
25+
-v ${{ github.workspace }}/output:/output \
26+
ghcr.io/introkun/netpass-builder:latest
27+
28+
- name: Create Release
29+
id: create_release
30+
uses: actions/create-release@v1
31+
with:
32+
tag_name: ${{ github.ref_name }}
33+
release_name: Unofficial Release ${{ github.ref_name }}
34+
draft: false
35+
prerelease: true
36+
body: |
37+
Automated unofficial release for commit ${{ github.sha }}.
38+
39+
- name: Upload Release Assets
40+
uses: softprops/action-gh-release@v1
41+
with:
42+
files: output/*.cia,output/*.3dsx
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)