Skip to content

Commit

Permalink
Switch to manual release with semver (#636)
Browse files Browse the repository at this point in the history
* Switch to manual release with semver

- Switch to semver versioning supported by dependabot starting with version 4.0.0 to "reset".
- New releases are manually published via github releases.
https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes

* Deleted unused scripts and moved gradle script
  • Loading branch information
albrektsson authored Jul 28, 2023
1 parent a6c041c commit 52d886c
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 69 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/deploy.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish release
on:
release:
types: [published]

jobs:
publish-release:
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
steps:
- name: Checkout latest code
uses: actions/checkout@v3
with:
ref: master
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
cache: maven
- name: Publish artifact
env:
NEW_VERSION: ${{ github.event.release.tag_name }}
GITHUB_USERNAME: x-access-token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mvn -B versions:set -DnewVersion=${NEW_VERSION}
mvn -B clean deploy --batch-mode --settings ./.github/settings.xml -Dmaven.wagon.http.pool=false --file pom.xml
File renamed without changes.
13 changes: 0 additions & 13 deletions scripts/get-version.sh

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/rollback-maven-version.sh

This file was deleted.

4 changes: 0 additions & 4 deletions scripts/set-maven-version.sh

This file was deleted.

0 comments on commit 52d886c

Please sign in to comment.