diff options
| author | botato <63275405+botatooo@users.noreply.github.com> | 2022-07-13 21:19:19 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-13 21:19:19 -0400 |
| commit | 3c24b37247d084939cc58922d42b0a45f89a7155 (patch) | |
| tree | 63c8dbf4d52df3e541d165d80e3b2169de7709fa /.github/workflows | |
| parent | dbb4bc5ab44fedb8b7e55bef7b2ebf59a9181107 (diff) | |
| download | decky-loader-3c24b37247d084939cc58922d42b0a45f89a7155.tar.gz decky-loader-3c24b37247d084939cc58922d42b0a45f89a7155.zip | |
change ci again (#116)
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 41 |
1 files changed, 36 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e464a9a..fb80e630 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -105,20 +105,51 @@ jobs: name: PluginLoader path: dist - - name: Bump version and push tag ⏫ + - name: Bump version ⏫ id: tag_version uses: mathieudutour/github-tag-action@v6.0 + if: ${{ github.event_name == 'workflow_dispatch' }} with: github_token: ${{ secrets.GITHUB_TOKEN }} - release_branches: '' - pre_release_branches: 'main' - append_to_pre_release_tag: '-pre' + dry_run: true + + - name: Push tag ⏫ + uses: rickstaa/action-create-tag@v1.3.2 + if: ${{ steps.tag_version.outputs.new_tag && github.event_name == 'workflow_dispatch' }} + with: + tag: ${{ steps.tag_version.outputs.new_tag }}-pre + message: Nightly ${{ steps.tag_version.outputs.new_tag }} - name: Release 📦 uses: softprops/action-gh-release@v1 + if: ${{ github.event_name == 'workflow_dispatch' }} with: name: Nightly ${{ steps.tag_version.outputs.new_tag }} - tag_name: ${{ steps.tag_version.outputs.new_tag }} + tag_name: ${{ steps.tag_version.outputs.new_tag }}-pre + files: ./dist/PluginLoader + prerelease: true + generate_release_notes: true + + - name: Bump prerelease + id: bump + if: ${{ github.event_name == 'schedule' }} + run: | + git_hash=$(git rev-parse --short "$GITHUB_SHA") + echo ::set-output new_tag="nightly-$git_hash" + + - name: Push tag ⏫ + uses: rickstaa/action-create-tag@v1.3.2 + if: ${{ github.event_name == 'schedule' }} + with: + tag: ${{ steps.bump.outputs.new_tag }} + message: Nightly ${{ steps.bump.outputs.new_tag }} + + - name: Release 📦 + uses: softprops/action-gh-release@v1 + if: ${{ github.event_name == 'schedule' }} + with: + name: Nightly ${{ steps.bump.outputs.new_tag }} + tag_name: ${{ steps.bump.outputs.new_tag }} files: ./dist/PluginLoader prerelease: true generate_release_notes: true |
