Skip to content

Commit

Permalink
Merge pull request #413 from Ladicek/improve-github-actions
Browse files Browse the repository at this point in the history
improve GitHub Actions setup
  • Loading branch information
Ladicek authored Jul 19, 2024
2 parents e94c89d + 9a64e4b commit 383f87b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
github-pages:
name: GitHub Pages
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ on:

jobs:
release:
runs-on: ubuntu-latest
name: Pre-release checks
runs-on: ubuntu-latest

steps:
- name: Retrieve project metadata
id: metadata
uses: radcortez/project-metadata-action@master
uses: radcortez/project-metadata-action@main
with:
github-token: ${{secrets.GITHUB_TOKEN}}
metadata-file-path: '.github/project.yml'
Expand All @@ -23,8 +24,8 @@ jobs:
echo '::error::Cannot release a SNAPSHOT version.'
exit 1
- uses: radcortez/milestone-review-action@master
name: Milestone review
- name: Milestone review
uses: radcortez/milestone-review-action@main
with:
github-token: ${{secrets.GITHUB_TOKEN}}
milestone-title: ${{steps.metadata.outputs.current-version}}
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ jobs:
if: ${{github.event.pull_request.merged == true}}
env:
GITHUB_TOKEN: ${{secrets.RELEASE_TOKEN}}

steps:
- name: Retrieve project metadata
id: metadata
uses: radcortez/project-metadata-action@master
uses: radcortez/project-metadata-action@main
with:
github-token: ${{secrets.GITHUB_TOKEN}}
metadata-file-path: '.github/project.yml'
Expand Down Expand Up @@ -51,6 +52,7 @@ jobs:
run: |
export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED"
java -version
mvn --version
git config --global user.name "SmallRye CI"
git config --global user.email "smallrye@googlegroups.com"
git checkout -b release
Expand All @@ -67,17 +69,19 @@ jobs:
git push
git push --tags
- uses: radcortez/milestone-release-action@master
name: Milestone release
- name: Milestone release
uses: radcortez/milestone-release-action@main
with:
github-token: ${{secrets.GITHUB_TOKEN}}
milestone-title: ${{steps.metadata.outputs.current-version}}
milestone-next: ${{steps.metadata.outputs.next-version}}

github-pages:
name: GitHub Pages
needs:
- release
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 383f87b

Please sign in to comment.