mirror of
https://github.com/nzp-team/glquake.git
synced 2025-02-11 10:11:20 +00:00
Update build-and-release.yml
This commit is contained in:
parent
b92de21b20
commit
8bee1f885c
1 changed files with 49 additions and 1 deletions
50
.github/workflows/build-and-release.yml
vendored
50
.github/workflows/build-and-release.yml
vendored
|
@ -27,4 +27,52 @@ jobs:
|
||||||
zip -r ctr-nzp-3ds.zip nzportable.3dsx nzportable.smdh
|
zip -r ctr-nzp-3ds.zip nzportable.3dsx nzportable.smdh
|
||||||
curl --upload-file ./ctr-nzp-3ds.zip https://transfer.sh/ctr-nzp-3ds.zip > output-log.log
|
curl --upload-file ./ctr-nzp-3ds.zip https://transfer.sh/ctr-nzp-3ds.zip > output-log.log
|
||||||
echo "::set-output name=zip::$(cat output-log.log)"
|
echo "::set-output name=zip::$(cat output-log.log)"
|
||||||
|
Unify-and-Release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: Compile-3ds
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Download Archives
|
||||||
|
working-directory: ./
|
||||||
|
run: |
|
||||||
|
curl ${{ needs.Compile-3ds.outputs.3ds_link }} -o ctr-nzp-3ds.zip
|
||||||
|
- 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: |
|
||||||
|
This is a **bleeding edge** NZ:P 3DS release, stability is not guarenteed.
|
||||||
|
To install:
|
||||||
|
- Grab the .ZIP archive for your platform
|
||||||
|
- 3DS: Extract the `.3dsx`, copy it to /3ds/nzportable on SD Card, copy data assets.
|
||||||
|
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-3ds.zip
|
||||||
|
asset_name: ctr-nzp-3ds.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 }}
|
||||||
|
|
Loading…
Reference in a new issue