Skip to content

Commit

Permalink
Only deploy GitHub pages while in the main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Omico committed Jun 14, 2024
1 parent 7fc1593 commit 6341c9a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,12 @@ jobs:
contents: write

deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
needs: gradle-build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: gradle-build
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
- uses: actions/deploy-pages@v4

0 comments on commit 6341c9a

Please sign in to comment.