Skip to content

Commit

Permalink
Update GitHub Workflow Config (#880)
Browse files Browse the repository at this point in the history
- Update email address
- Skip Latest and Snapshot for 5.3.x branch
  • Loading branch information
puneetbehl authored Dec 6, 2023
1 parent dc0e12f commit 5083e83
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
5 changes: 2 additions & 3 deletions .github/actions/tag-and-release/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@ echo "Pushing release version and recreating v${grails_version} tag"
git add gradle.properties
git commit -m "[skip ci] Release v${grails_version} docs"
git push origin $TARGET_BRANCH
git push origin :refs/tags/v${grails_version}
git tag -fa v${grails_version} -m "[skip ci] Release v${grails_version} docs"
git push origin $TARGET_BRANCH --tags
git tag -fa v${grails_version} -m "Release v${grails_version} docs"
git push -f origin v${grails_version}
11 changes: 4 additions & 7 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@ on:
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
java: ['8']
env:
GIT_USER_NAME: puneetbehl
GIT_USER_EMAIL: behlp@objectcomputing.com
GIT_USER_EMAIL: behlp@unityfoundation.io
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -22,7 +19,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
java-version: 8
- name: Publish Documentation
run: |
./gradlew --stop
Expand All @@ -41,13 +38,13 @@ jobs:
run: echo ::set-output name=value::${GITHUB_REF:11}
- name: Publish to Github Pages
if: success()
uses: micronaut-projects/github-pages-deploy-action@grails
uses: grails/github-pages-deploy-action@v2
env:
TARGET_REPOSITORY: ${{ steps.docs_target.outputs.value }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
BRANCH: gh-pages
OLDER_VERSION: ${{ startsWith(steps.extract_branch.outputs.value, '3.3') || startsWith(steps.extract_branch.outputs.value, '4.1') }}
SKIP_SNAPSHOT: true
SKIP_LATEST: true
FOLDER: build/docs
DOC_FOLDER: gh-pages
COMMIT_EMAIL: ${{ env.GIT_USER_EMAIL }}
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ jobs:
matrix:
java: ['8']
env:
BETA: ${{ contains(github.event.inputs.grails_version, 'M') || contains(github.event.inputs.grails_version, 'RC') }}
OLDER_VERSION: ${{ startsWith(github.event.inputs.grails_version, '3.3') || startsWith(github.event.inputs.grails_version, '4.1') }}
GIT_USER_NAME: puneetbehl
GIT_USER_EMAIL: behlp@objectcomputing.com
GIT_USER_EMAIL: behlp@unityfoundation.io
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -87,7 +85,7 @@ jobs:
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:
TARGET_REPOSITORY: ${{ steps.docs_target.outputs.value }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down

0 comments on commit 5083e83

Please sign in to comment.