File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : regionaldialect-patch-600
2+ on :
3+ push :
4+ tags :
5+ - ' v*.*.*' # Triggers on version tags
6+ branches :
7+ - ' **' # Triggers on all branches
8+ workflow_dispatch :
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+ container : docker.io/devkitpro/devkita64
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v2
17+ with :
18+ submodules : true
19+
20+ - name : Build the project
21+ run : make
22+
23+ - name : Rename output
24+ run : |
25+ mv RegionalDialect600.nso subsdk9
26+
27+ - name : Create Github Artifact
28+ uses : actions/upload-artifact@v4.1.0
29+ with :
30+ name : subsdk9
31+ path : subsdk9
32+
33+ - name : Get Next Version
34+ id : semver
35+ uses : ietf-tools/semver-action@v1
36+ if : github.event_name == 'push' && (startsWith(github.ref, 'refs/tags') || github.ref_name == 'master')
37+ with :
38+ token : ${{ github.token }}
39+ branch : master
40+ fallbackTag : 0.0.0
41+ patchAll : true
42+ noVersionBumpBehavior : patch
43+ noNewCommitBehavior : warn
44+
45+ - name : Create GitHub Release
46+ uses : softprops/action-gh-release@v1
47+ if : github.event_name == 'push' && ((startsWith(github.ref, 'refs/tags') || github.ref_name == 'master'))
48+ with :
49+ files : |
50+ subsdk9
51+ tag_name : ${{ steps.semver.outputs.next }}
52+ env :
53+ GITHUB_TOKEN : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments