Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sammcj committed Jun 1, 2024
1 parent 94b830b commit 239196d
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,14 @@ jobs:
release_branches: main
pre_release_branches: dev

# Delete latest tag
- name: Delete latest tag
if: github.ref == 'refs/heads/main'
# Make a new latest tag and force push it
- name: Make a new latest tag and force push it
if: ${{ steps.tag_version.outputs.new_tag != 'false' }}
run: |
git push origin :refs/tags/latest
# Bump latest version
- name: Bump latest version
id: tag_latest
if: github.ref == 'refs/heads/main'
uses: mathieudutour/github-tag-action@a22cf08638b34d5badda920f9daf6e72c477b07b # v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
release_branches: main
custom_tag: latest
git fetch --tags
git checkout ${{ github.ref }}
git tag -f latest ${{ steps.tag_version.outputs.new_tag }}
git push origin latest --force
# Publish
- name: Create a GitHub release
Expand Down

0 comments on commit 239196d

Please sign in to comment.