Skip to content

Commit

Permalink
Merge pull request #87 from dRAGon-Okinawa/staging
Browse files Browse the repository at this point in the history
Only release on main repo
  • Loading branch information
amengus87 authored Jun 18, 2024
2 parents 4daf3d9 + 853d2e0 commit 2399440
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ jobs:
run: gradle issueReportInfo

- name: Create Release
if: github.ref == 'refs/heads/main'
if: |
github.ref == 'refs/heads/main' &&
github.repository == 'dragon-okinawa/dragon'
run: gradle createRelease

- name: Set Frontend Version
Expand Down Expand Up @@ -75,12 +77,16 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}

- name: Push Release
if: github.ref == 'refs/heads/main'
if: |
github.ref == 'refs/heads/main' &&
github.repository == 'dragon-okinawa/dragon'
run: gradle pushRelease

- name: Deploy Documentation
uses: JamesIves/github-pages-deploy-action@releases/v3
if: github.ref == 'refs/heads/main'
if: |
github.ref == 'refs/heads/main' &&
github.repository == 'dragon-okinawa/dragon'
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
Expand Down

0 comments on commit 2399440

Please sign in to comment.