Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve GitHub Actions setup #413

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 "[email protected]"
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
Loading