From aca901bb6276d08cfda60bc9dc0cbc53f727cc05 Mon Sep 17 00:00:00 2001 From: Vinfall <91039000+Vinfall@users.noreply.github.com> Date: Tue, 17 Oct 2023 06:20:32 +0000 Subject: [PATCH] Workflow improvement (#140) * workflow: add ability to skip ci * workflow: upload artifacts to prerelease --- .github/workflows/rewrite.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/rewrite.yml b/.github/workflows/rewrite.yml index 6e6913c..725dda5 100644 --- a/.github/workflows/rewrite.yml +++ b/.github/workflows/rewrite.yml @@ -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 }}