1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-11-09 12:11:44 +00:00

Workflow improvement (#140)

* workflow: add ability to skip ci

* workflow: upload artifacts to prerelease
This commit is contained in:
Vinfall 2023-10-17 06:20:32 +00:00 committed by GitHub
parent c1b76fb2d9
commit aca901bb62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,8 @@ env:
jobs:
build:
runs-on: ubuntu-latest
# Skip build with [ci skip] in commit
if: "! contains(github.event.head_commit.message, '[ci skip]')"
container:
image: devkitpro/devkita64
steps:
@ -104,3 +106,22 @@ jobs:
# name: nxdumptool-rewrite-${{ env.nxdt_commit }}-WIP_UI.elf
# path: nxdumptool/nxdumptool.elf
# if-no-files-found: error
- name: Upload artifact to prerelease
uses: ncipollo/release-action@v1
with:
# only update on prerelease
prerelease: True
tag: "rewrite-prerelease"
updateOnlyUnreleased: True
# remove old artifacts & replace with new ones
removeArtifacts: True
replacesArtifacts: True
# update preference
allowUpdates: True
omitBody: True
omitBodyDuringUpdate: True
omitNameDuringUpdate: True
artifacts: "nxdumptool/code_templates/tmp/nxdt_rw_poc.*"
#artifacts: "nxdumptool/code_templates/tmp/nxdt_rw_poc.*, nxdumptool/nxdumptool.*"
token: ${{ secrets.GITHUB_TOKEN }}