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

Checkout release tag #506

Merged
merged 2 commits into from
Sep 25, 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
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ jobs:
run: |
./mvnw -B release:perform -Poss-release,oss-stage

- name: Display git status and history
- name: Display git status and history, checkout release tag
run: |
git status
git log --oneline -n 2
# Checkout version so that JReleaser runs from a tagged commit
git checkout "${VERSION}"

- name: List locally staged artifacts
run: |
Expand All @@ -92,12 +94,12 @@ jobs:
JRELEASER_SKIP_RELEASE: ${{ inputs.push && 'false' || 'true' }}
with:
setup-java: false
working-directory: 'target/checkout'

- name: Push git changes
if: ${{ inputs.push }}
run: |
git status
git describe
git push origin master

- name: Unlock branch after a release
Expand Down
2 changes: 1 addition & 1 deletion jreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ deploy:
closeRepository: true
releaseRepository: true
stagingRepositories:
- target/staging-deploy
- target/checkout/target/staging-deploy
artifactOverrides:
- groupId: io.airlift
artifactId: airbase-policy
Expand Down
Loading