-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 997 Bytes
/
ci.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
40
41
42
43
44
45
46
name: C/C++ CI
on: [push, pull_request]
jobs:
build:
name: Build NDS
runs-on: ubuntu-latest
container:
image: devkitpro/devkitarm:latest
steps:
- name: Checkout Code
uses: actions/[email protected]
- name: Build
run: |
make
- name: Upload NDS Artifact
uses: actions/upload-artifact@v3
with:
name: hello-world-nds.nds
path: hello-world-nds.nds
release:
name: Create Release
runs-on: ubuntu-latest
needs: build
steps:
- name: Download NDS Artifact
uses: actions/download-artifact@v3
with:
name: hello-world-nds.nds
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
artifacts: hello-world-nds.nds
tag: v1.0
name: "Release v1.0"
body: "Automated release of version v1.0"
allowUpdates: true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}