Skip to content

Commit

Permalink
change ci again (SteamDeckHomebrew#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
adntaha authored Jul 14, 2022
1 parent b9dc3c4 commit b1739a6
Showing 1 changed file with 36 additions and 5 deletions.
41 changes: 36 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b1739a6

Please sign in to comment.