Skip to content

Commit

Permalink
Merge pull request #274 from willowtreeapps/hotfix/gh-actions-2
Browse files Browse the repository at this point in the history
Hotfix/gh actions 2
  • Loading branch information
andrewowen authored Feb 8, 2024
2 parents e4940d7 + c0df6b8 commit 7f8815f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/mc-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ jobs:
run: ./gradlew assemble

- name: Lint Release
run: ./gradlew lintRelease
run: ./gradlew lintRelease;

- name: Check for Release Tag
id: check_if_release-tag
run: echo "is_release=$(if [[ "${{ github.ref }}" == refs/tags/v*.*.* ]]; then echo 'true'; else echo 'false'; fi)" >> $GITHUB_OUTPUT

- name: Deploy To Maven Central
run: |
Expand All @@ -47,12 +51,12 @@ jobs:
-Porg.gradle.parallel=false \
-Porg.gradle.daemon=false \
--no-daemon
if: ${{ success() && github.ref == 'tags/v*.*.*' }}
if: ${{ success() && steps.check_if_release-tag.outputs.is_release == 'true' }}

- name: Create Github Release
uses: marvinpinto/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
if: ${{ success() && github.ref == 'tags/v*.*.*' }}
if: ${{ success() && steps.check_if_release-tag.outputs.is_release == 'true' }}

0 comments on commit 7f8815f

Please sign in to comment.