Skip to content

Commit 0f52af8

Browse files
authored
chore(release): update workflow configurations (#899)
1 parent cc6396e commit 0f52af8

File tree

2 files changed

+4
-20
lines changed

2 files changed

+4
-20
lines changed

.github/workflows/gradle.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,24 +41,16 @@ jobs:
4141
with:
4242
name: grails-docs-${{ env.NOW }}.zip
4343
path: ./build/distributions/*.zip
44-
- name: Determine docs target repository
45-
if: success()
46-
uses: haya14busa/action-cond@v1
47-
id: docs_target
48-
with:
49-
cond: ${{ github.repository == 'grails/grails-doc' }}
50-
if_true: 'grails/grails-doc'
51-
if_false: ${{ github.repository }}
5244
- name: Publish Snapshot Documentation to Github Pages
5345
if: success() && github.event_name == 'push'
54-
uses: micronaut-projects/github-pages-deploy-action@grails
46+
uses: grails/github-pages-deploy-action@v2
5547
env:
5648
BRANCH: gh-pages
5749
COMMIT_EMAIL: ${{ env.GIT_USER_EMAIL }}
5850
COMMIT_NAME: ${{ env.GIT_USER_NAME }}
5951
FOLDER: build/docs
6052
GH_TOKEN: ${{ secrets.GH_TOKEN }}
61-
TARGET_REPOSITORY: ${{ steps.docs_target.outputs.value }}
53+
TARGET_REPOSITORY: ${{ github.repository }}
6254
SKIP_SNAPSHOT: ${{
6355
startsWith(steps.extract_branch.outputs.value, '3.3') ||
6456
startsWith(steps.extract_branch.outputs.value, '4.1') ||

.github/workflows/release.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,22 +82,14 @@ jobs:
8282
asset_path: ${{ steps.asset_path.outputs.value }}
8383
asset_name: grails-docs.zip
8484
asset_content_type: application/zip
85-
- name: Determine docs target repository
86-
if: success()
87-
uses: haya14busa/action-cond@v1
88-
id: docs_target
89-
with:
90-
cond: ${{ github.repository == 'grails/grails-doc' }}
91-
if_true: 'grails/grails-doc'
92-
if_false: ${{ github.repository }}
9385
- name: Publish to Github Pages
9486
if: success()
95-
uses: micronaut-projects/github-pages-deploy-action@grails
87+
uses: grails/github-pages-deploy-action@v2
9688
env:
9789
BRANCH: gh-pages
9890
COMMIT_EMAIL: ${{ env.GIT_USER_EMAIL }}
9991
COMMIT_NAME: ${{ env.GIT_USER_NAME }}
10092
FOLDER: build/docs
10193
GH_TOKEN: ${{ secrets.GH_TOKEN }}
102-
TARGET_REPOSITORY: ${{ steps.docs_target.outputs.value }}
94+
TARGET_REPOSITORY: ${{ github.repository }}
10395
VERSION: ${{ github.event.inputs.grails_version }}

0 commit comments

Comments
 (0)