2022-09-09 07:06:02 +00:00
|
|
|
name: Build and Publish Release
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
Compile-3ds:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
outputs:
|
2022-11-01 06:25:34 +00:00
|
|
|
o3ds_link: ${{ steps.zip.outputs.zip }}
|
2022-09-09 07:06:02 +00:00
|
|
|
container:
|
2022-11-01 06:05:58 +00:00
|
|
|
image: devkitpro/devkitarm
|
2022-09-09 07:06:02 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Packages and update picaGL
|
|
|
|
run: |
|
2022-11-01 06:19:32 +00:00
|
|
|
git clone https://github.com/masterfeizz/picaGL.git
|
2022-09-09 07:06:02 +00:00
|
|
|
cd picaGL
|
2022-11-01 06:17:29 +00:00
|
|
|
git checkout revamp
|
2022-09-09 07:06:02 +00:00
|
|
|
mkdir clean
|
2022-11-01 06:17:29 +00:00
|
|
|
make install
|
2022-09-09 07:06:02 +00:00
|
|
|
- name: Build
|
|
|
|
working-directory: ./
|
|
|
|
run: |
|
|
|
|
make -f Makefile
|
|
|
|
- name: Zip and Upload
|
|
|
|
id: zip
|
|
|
|
working-directory: ./
|
|
|
|
run: |
|
2022-11-27 17:30:24 +00:00
|
|
|
zip -r ctr-nzp-3dsx.zip nzportable.3dsx nzportable.smdh
|
|
|
|
curl --upload-file ./ctr-nzp-3dsx.zip https://transfer.sh/ctr-nzp-3dsx.zip > output-log.log
|
2022-09-09 07:06:02 +00:00
|
|
|
echo "::set-output name=zip::$(cat output-log.log)"
|
2022-11-01 06:24:51 +00:00
|
|
|
Unify-and-Release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: Compile-3ds
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Download Archives
|
|
|
|
working-directory: ./
|
|
|
|
run: |
|
2022-11-27 17:30:24 +00:00
|
|
|
curl ${{ needs.Compile-3ds.outputs.o3ds_link }} -o ctr-nzp-3dsx.zip
|
2022-11-01 06:24:51 +00:00
|
|
|
- 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/delete-tag-and-release@v0.2.0
|
|
|
|
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: |
|
2022-11-27 17:30:24 +00:00
|
|
|
This is a **bleeding edge** NZ:P .3dsx release, stability is not guarenteed.
|
2022-11-01 06:24:51 +00:00
|
|
|
To install:
|
2022-11-27 17:30:24 +00:00
|
|
|
- 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.
|
2022-11-01 06:24:51 +00:00
|
|
|
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 }}
|
2022-11-27 17:33:28 +00:00
|
|
|
asset_path: ./ctr-nzp-3dsx.zip
|
|
|
|
asset_name: ctr-nzp-3dsx.zip
|
2022-11-01 06:24:51 +00:00
|
|
|
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 }}
|