Generate NZPortable Nightlies. #606
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate NZPortable Nightlies. | |
on: | |
schedule: | |
- cron: 0 7 * * * | |
workflow_dispatch: | |
jobs: | |
Generate-Nightly: | |
runs-on: ubuntu-latest | |
container: | |
image: sharkwouter/pspdev | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Get apt ready | |
run: | | |
apt update | |
apt install -y zip unzip wget curl git jq | |
- name: Assemble Archives | |
continue-on-error: false | |
working-directory: ./ | |
run: | | |
./generate-nightly.sh ${{ secrets.GITHUB_TOKEN }} | |
- name: Get Build Date | |
id: date | |
run: echo "::set-output name=date::$(cat release_version.txt)" | |
- name: Delete Old Release | |
uses: dev-drprasad/delete-tag-and-release@v0.2.1 | |
with: | |
delete_release: true | |
tag_name: nightly | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
continue-on-error: true | |
id: attempt-1 | |
with: | |
name: ${{ steps.date.outputs.date }} | |
tag_name: nightly | |
body_path: changes.txt | |
token: ${{ secrets.GITHUB_TOKEN }} | |
files: | | |
./out/nzportable-3ds.zip | |
./out/nzportable-linux32.zip | |
./out/nzportable-linux64.zip | |
./out/nzportable-linuxarm64.zip | |
./out/nzportable-linuxarmhf.zip | |
./out/nzportable-psp-32mb.zip | |
./out/nzportable-psp-64mb.zip | |
./out/nzportable-switch.zip | |
./out/nzportable-vita.zip | |
./out/nzportable-win32.zip | |
./out/nzportable-win64.zip | |
./out/build-version.txt | |
- name: Release attempt 2 | |
uses: softprops/action-gh-release@v1 | |
continue-on-error: true | |
id: attempt-2 | |
if: steps.attempt-1.outcome == 'failure' | |
with: | |
name: ${{ steps.date.outputs.date }} | |
tag_name: nightly | |
body_path: changes.txt | |
token: ${{ secrets.GITHUB_TOKEN }} | |
files: | | |
./out/nzportable-3ds.zip | |
./out/nzportable-linux32.zip | |
./out/nzportable-linux64.zip | |
./out/nzportable-linuxarm64.zip | |
./out/nzportable-linuxarmhf.zip | |
./out/nzportable-psp-32mb.zip | |
./out/nzportable-psp-64mb.zip | |
./out/nzportable-switch.zip | |
./out/nzportable-vita.zip | |
./out/nzportable-win32.zip | |
./out/nzportable-win64.zip | |
./out/build-version.txt | |
- name: Release attempt 3 | |
uses: softprops/action-gh-release@v1 | |
continue-on-error: true | |
id: attempt-3 | |
if: steps.attempt-2.outcome == 'failure' | |
with: | |
name: ${{ steps.date.outputs.date }} | |
tag_name: nightly | |
body_path: changes.txt | |
token: ${{ secrets.GITHUB_TOKEN }} | |
files: | | |
./out/nzportable-3ds.zip | |
./out/nzportable-linux32.zip | |
./out/nzportable-linux64.zip | |
./out/nzportable-linuxarm64.zip | |
./out/nzportable-linuxarmhf.zip | |
./out/nzportable-psp-32mb.zip | |
./out/nzportable-psp-64mb.zip | |
./out/nzportable-switch.zip | |
./out/nzportable-vita.zip | |
./out/nzportable-win32.zip | |
./out/nzportable-win64.zip | |
./out/build-version.txt | |
- name: Release attempt 4 | |
uses: softprops/action-gh-release@v1 | |
continue-on-error: true | |
id: attempt-4 | |
if: steps.attempt-3.outcome == 'failure' | |
with: | |
name: ${{ steps.date.outputs.date }} | |
tag_name: nightly | |
body_path: changes.txt | |
token: ${{ secrets.GITHUB_TOKEN }} | |
files: | | |
./out/nzportable-3ds.zip | |
./out/nzportable-linux32.zip | |
./out/nzportable-linux64.zip | |
./out/nzportable-linuxarm64.zip | |
./out/nzportable-linuxarmhf.zip | |
./out/nzportable-psp-32mb.zip | |
./out/nzportable-psp-64mb.zip | |
./out/nzportable-switch.zip | |
./out/nzportable-vita.zip | |
./out/nzportable-win32.zip | |
./out/nzportable-win64.zip | |
./out/build-version.txt | |
- name: Release attempt 5 | |
uses: softprops/action-gh-release@v1 | |
continue-on-error: false | |
id: attempt-5 | |
if: steps.attempt-4.outcome == 'failure' | |
with: | |
name: ${{ steps.date.outputs.date }} | |
tag_name: nightly | |
body_path: changes.txt | |
token: ${{ secrets.GITHUB_TOKEN }} | |
files: | | |
./out/nzportable-3ds.zip | |
./out/nzportable-linux32.zip | |
./out/nzportable-linux64.zip | |
./out/nzportable-linuxarm64.zip | |
./out/nzportable-linuxarmhf.zip | |
./out/nzportable-psp-32mb.zip | |
./out/nzportable-psp-64mb.zip | |
./out/nzportable-switch.zip | |
./out/nzportable-vita.zip | |
./out/nzportable-win32.zip | |
./out/nzportable-win64.zip | |
./out/build-version.txt |