Skip to content

Commit

Permalink
Also release tagged commits regardless of their branch
Browse files Browse the repository at this point in the history
  • Loading branch information
lefou committed Jul 15, 2021
1 parent a59a805 commit 5210244
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ jobs:
run: ${{ matrix.buildcmd }}

publish-sonatype:
if: github.repository == 'com-lihaoyi/mill' && github.ref == 'refs/heads/main'
# when in master repo: all commits to main branch and all additional tags
if: github.repository == 'com-lihaoyi/mill' && ( github.ref == 'refs/heads/main' || (github.ref != 'refs/heads/main' && startsWith( github.ref, 'refs/tags/') ) )
needs: [test, test-windows]

runs-on: ubuntu-latest
Expand All @@ -118,7 +119,8 @@ jobs:
- run: ci/release-maven.sh

release-github:
if: github.repository == 'com-lihaoyi/mill' && github.ref == 'refs/heads/main'
# when in master repo: all commits to main branch and all additional tags
if: github.repository == 'com-lihaoyi/mill' && ( github.ref == 'refs/heads/main' || (github.ref != 'refs/heads/main' && startsWith( github.ref, 'refs/tags/') ) )
needs: publish-sonatype
runs-on: ubuntu-latest

Expand Down

0 comments on commit 5210244

Please sign in to comment.