This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
66 lines (66 loc) · 2.17 KB
/
build-and-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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Build and Publish Release
on: [push]
jobs:
Compile-3ds:
runs-on: ubuntu-latest
outputs:
o3ds_link: ${{ steps.zip.outputs.zip }}
container:
image: devkitpro/devkitarm
steps:
- uses: actions/checkout@v2
- name: Install Packages and update picaGL
run: |
git clone https://github.com/masterfeizz/picaGL.git
cd picaGL
git checkout revamp
mkdir clean
make install
- name: Build
working-directory: ./
run: |
make -f Makefile
- name: Zip
working-directory: ./
run: |
zip -r ctr-nzp-3dsx.zip nzportable.3dsx nzportable.smdh
- name: Generate Build Date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d-%H-%M-%S')"
- name: Delete Old Release
uses: dev-drprasad/[email protected]
with:
delete_release: true
tag_name: bleeding-edge
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: bleeding-edge
release_name: Automated Release ${{ steps.date.outputs.date }}
body: |
This is a **bleeding edge** NZ:P .3dsx release, stability is not guarenteed.
To install:
- Grab the .ZIP archive (ctr-nzp-3dsx.zip)
- Extract the contents of the .ZIP archive and copy it to /3ds/nzportable on your SD Card.
draft: true
prerelease: false
- name: Upload 3DS Archive
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ctr-nzp-3dsx.zip
asset_name: ctr-nzp-3dsx.zip
asset_content_type: application/zip
- name: Publish Release
uses: StuYarrow/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
id: ${{ steps.create_release.outputs.id }}