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

Release 1.3.14 #56

Merged
merged 45 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
c65d77a
Add GitHub actor to release
mallport Oct 7, 2024
18b7bc9
Add GitHub email and name
mallport Oct 7, 2024
218359c
[maven-release-plugin] prepare release 1.3.3
invalid-email-address Oct 7, 2024
138fd75
[maven-release-plugin] prepare for next development iteration
invalid-email-address Oct 7, 2024
b43f3eb
Use bot credentials
mallport Oct 7, 2024
e91b7d1
Merge branch 'release' of https://github.com/statisticsnorway/maskinp…
mallport Oct 7, 2024
8a9f112
[maven-release-plugin] prepare release 1.3.4
invalid-email-address Oct 7, 2024
c169b6f
[maven-release-plugin] prepare for next development iteration
invalid-email-address Oct 7, 2024
2472aa2
Add authentication to GitHub packages
mallport Oct 7, 2024
22f6c7a
Merge branch 'release' of https://github.com/statisticsnorway/maskinp…
mallport Oct 7, 2024
15e5939
[maven-release-plugin] prepare release 1.3.5
invalid-email-address Oct 7, 2024
b712125
[maven-release-plugin] prepare for next development iteration
invalid-email-address Oct 7, 2024
a868ae6
Add GitHub token
mallport Oct 7, 2024
57ee963
[maven-release-plugin] prepare release 1.3.6
invalid-email-address Oct 7, 2024
8035645
[maven-release-plugin] prepare for next development iteration
invalid-email-address Oct 7, 2024
de33045
Add another GitHub token
mallport Oct 7, 2024
90570fe
:Merge branch 'release' of https://github.com/statisticsnorway/maskin…
mallport Oct 7, 2024
19619a1
[maven-release-plugin] prepare release 1.3.7
invalid-email-address Oct 7, 2024
3cd6a63
[maven-release-plugin] prepare for next development iteration
invalid-email-address Oct 7, 2024
db63fca
add more tokens
mallport Oct 7, 2024
518b122
:wqerge branch 'release' of https://github.com/statisticsnorway/maski…
mallport Oct 7, 2024
df7b424
[maven-release-plugin] prepare release 1.3.8
invalid-email-address Oct 7, 2024
c161500
[maven-release-plugin] prepare for next development iteration
invalid-email-address Oct 7, 2024
6c02f57
Add spaces
mallport Oct 7, 2024
1279a58
[maven-release-plugin] prepare release 1.3.9
invalid-email-address Oct 7, 2024
f631e3c
[maven-release-plugin] prepare for next development iteration
invalid-email-address Oct 7, 2024
ee87785
add git status
mallport Oct 8, 2024
c7127ce
Merge branch 'release' of https://github.com/statisticsnorway/maskinp…
mallport Oct 8, 2024
d758e0b
[maven-release-plugin] prepare release 1.3.10
invalid-email-address Oct 8, 2024
6d2193e
[maven-release-plugin] prepare for next development iteration
invalid-email-address Oct 8, 2024
beffa2f
Add head option
mallport Oct 8, 2024
56f4f22
Merge branch 'release' of https://github.com/statisticsnorway/maskinp…
mallport Oct 8, 2024
75f8d28
[maven-release-plugin] prepare release 1.3.11
invalid-email-address Oct 8, 2024
94d79ea
[maven-release-plugin] prepare for next development iteration
invalid-email-address Oct 8, 2024
4b1e07c
Merge branch 'master' into release
mallport Oct 8, 2024
fa6dbd1
Upload release artifacts to AR
mallport Oct 8, 2024
5d39223
[maven-release-plugin] prepare release 1.3.12
invalid-email-address Oct 8, 2024
f6f9c20
[maven-release-plugin] prepare for next development iteration
invalid-email-address Oct 8, 2024
49ec8e6
add ar-profile
mallport Oct 8, 2024
2a6fe21
Merge branch 'release' of https://github.com/statisticsnorway/maskinp…
mallport Oct 8, 2024
e0ba25c
[maven-release-plugin] prepare release 1.3.13
invalid-email-address Oct 8, 2024
c304bbe
[maven-release-plugin] prepare for next development iteration
invalid-email-address Oct 8, 2024
c2fdc0c
add comment
mallport Oct 8, 2024
4427c2d
[maven-release-plugin] prepare release 1.3.14
invalid-email-address Oct 8, 2024
fba65c5
[maven-release-plugin] prepare for next development iteration
invalid-email-address Oct 8, 2024
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
25 changes: 22 additions & 3 deletions .github/workflows/mvn-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
contents: write
id-token: write
packages: write
pull-requests: write

steps:
- uses: actions/checkout@v4
Expand All @@ -38,21 +39,35 @@ jobs:
service_account: "gh-actions-dapla-stat@artifact-registry-5n.iam.gserviceaccount.com"
token_format: access_token

- name: Maven release and deploy to GitHub packages
- name: Setup Maven authentication to GitHub packages
uses: s4u/[email protected]
id: maven_settings
with:
servers: '[{"id": "github","configuration": {"httpHeaders": {"property": {"name": "Authorization","value": "Bearer ${{ secrets.GITHUB_TOKEN }}"}}}}]'

- name: Maven release and deploy to GitHub packages and Artifact Registry
id: release_artifact
env:
MAVEN_USERNAME: ${env.GITHUB_ACTOR}
MAVEN_PASSWORD: ${env.GITHUB_TOKEN}
run: |
git config user.name github-actions
git config user.email [email protected]

# Get the release version from the pom.xml before the next snapshot increment
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed "s/-SNAPSHOT//")
echo "version=${VERSION}" >> $GITHUB_OUTPUT
# Perform the release/deploy and increment the version to the next snapshot
mvn --batch-mode release:prepare -P github -Darguments="-Dmaven.test.skip=true -Dmaven.deploy.skip=true"
mvn --batch-mode release:prepare -P github,artifact-registry -Darguments="-Dmaven.test.skip=true -Dmaven.deploy.skip=true"
mvn --batch-mode release:perform
TAG=$(git describe --abbrev=0 --tags)
echo "tag=${TAG}" >> $GITHUB_OUTPUT

- name: Create GitHub release draft
uses: release-drafter/release-drafter@v6
id: create_github_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ steps.release_artifact.outputs.tag }}

Expand All @@ -65,9 +80,13 @@ jobs:
echo "Uploading $file"
gh release upload ${{ steps.create_github_release.outputs.tag_name }} $file
done
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create a pull request with the changes in the branch
run: |
pr_title="Release ${{steps.release_artifact.outputs.tag}}"
pr_body="This PR is autogenerated by a workflow. A release draft has been created and should be published after merging."
gh pr create --title $pr_title --body $pr_body
gh pr create --title "$pr_title" --body "$pr_body" --head $(git branch --show-current)
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>no.ssb.maskinporten</groupId>
<artifactId>maskinporten-guardian</artifactId>
<version>1.3.3-SNAPSHOT</version>
<version>1.3.15-SNAPSHOT</version>
<packaging>${packaging}</packaging>

<parent>
Expand Down
Loading