Skip to content

Commit

Permalink
chore(release): update workflow configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl committed Apr 9, 2024
1 parent cc6396e commit a0b58cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,16 @@ jobs:
with:
name: grails-docs-${{ env.NOW }}.zip
path: ./build/distributions/*.zip
- name: Determine docs target repository
if: success()
uses: haya14busa/action-cond@v1
id: docs_target
with:
cond: ${{ github.repository == 'grails/grails-doc' }}
if_true: 'grails/grails-doc'
if_false: ${{ github.repository }}
- name: Publish Snapshot Documentation to Github Pages
if: success() && github.event_name == 'push'
uses: micronaut-projects/github-pages-deploy-action@grails
uses: grails/github-pages-deploy-action@v2
env:
BRANCH: gh-pages
COMMIT_EMAIL: ${{ env.GIT_USER_EMAIL }}
COMMIT_NAME: ${{ env.GIT_USER_NAME }}
FOLDER: build/docs
GH_TOKEN: ${{ secrets.GH_TOKEN }}
TARGET_REPOSITORY: ${{ steps.docs_target.outputs.value }}
TARGET_REPOSITORY: ${{ github.repository }}
SKIP_SNAPSHOT: ${{
startsWith(steps.extract_branch.outputs.value, '3.3') ||
startsWith(steps.extract_branch.outputs.value, '4.1') ||
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,14 @@ jobs:
asset_path: ${{ steps.asset_path.outputs.value }}
asset_name: grails-docs.zip
asset_content_type: application/zip
- name: Determine docs target repository
if: success()
uses: haya14busa/action-cond@v1
id: docs_target
with:
cond: ${{ github.repository == 'grails/grails-doc' }}
if_true: 'grails/grails-doc'
if_false: ${{ github.repository }}
- name: Publish to Github Pages
if: success()
uses: micronaut-projects/github-pages-deploy-action@grails
uses: grails/github-pages-deploy-action@v2
env:
BRANCH: gh-pages
COMMIT_EMAIL: ${{ env.GIT_USER_EMAIL }}
COMMIT_NAME: ${{ env.GIT_USER_NAME }}
FOLDER: build/docs
GH_TOKEN: ${{ secrets.GH_TOKEN }}
TARGET_REPOSITORY: ${{ steps.docs_target.outputs.value }}
TARGET_REPOSITORY: ${{ github.repository }}
VERSION: ${{ github.event.inputs.grails_version }}

0 comments on commit a0b58cd

Please sign in to comment.