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 committed Dec 6, 2023
1 parent 3399476 commit 8f00a7a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
3 changes: 1 addition & 2 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 "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 "Release v${grails_version} docs"
git push origin $TARGET_BRANCH --tags
git push -f origin v${grails_version}
12 changes: 5 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,12 +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
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,9 @@ on:
jobs:
release:
runs-on: ubuntu-latest
strategy:
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 All @@ -25,7 +20,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
java-version: 8
- name: Extract branch name
if: success() && github.event_name == 'workflow_dispatch'
id: extract_branch
Expand Down Expand Up @@ -87,8 +82,10 @@ 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:
SKIP_SNAPSHOT: true
SKIP_LATEST: true
TARGET_REPOSITORY: ${{ steps.docs_target.outputs.value }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
BRANCH: gh-pages
Expand Down

0 comments on commit 8f00a7a

Please sign in to comment.