Skip to content

Commit

Permalink
ci: push force tag of snapshot release
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdbd committed Oct 4, 2024
1 parent e165030 commit 53bab6d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ jobs:
clojars:
name: Publish to Clojars
if: ${{ github.event_name != 'pull_request' }}
needs: [linux, macos, windows] # publish only when all tests on all platforms pass
# needs: [linux, macos, windows] # publish only when all tests on all platforms pass
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -365,13 +365,14 @@ jobs:
- name: 🛎️ Checkout
uses: actions/checkout@v4

- name: Tag commit
- name: Tag commit and push force it
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git status
git tag -a v${{ env.POD_VERSION }} -m "This version was published to Clojars: https://clojars.org/com.github.jackdbd/pod.jackdbd.jsoup/versions/${{ env.POD_VERSION }}" --force
git describe
git tag --force -a v${{ env.POD_VERSION }} -m "This version was published to Clojars: https://clojars.org/com.github.jackdbd/pod.jackdbd.jsoup/versions/${{ env.POD_VERSION }}"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
git push --force origin v${{ env.POD_VERSION }}
github-release:
name: GitHub release
Expand Down

0 comments on commit 53bab6d

Please sign in to comment.