-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support for release through Github (#67)
- Loading branch information
Showing
7 changed files
with
118 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name-template: $NEXT_PATCH_VERSION | ||
tag-template: $NEXT_PATCH_VERSION | ||
change-template: '- $TITLE (#$NUMBER) @$AUTHOR' | ||
categories: | ||
- title: '🚀 Features' | ||
labels: | ||
- 'feature' | ||
- 'enhancement' | ||
- title: '⚠️ Breaking Changes' | ||
labels: | ||
- 'breaking' | ||
- title: '🐛 Bug Fixes' | ||
labels: | ||
- 'fix' | ||
- 'bugfix' | ||
- 'bug' | ||
- title: '🧰 Maintenance' | ||
labels: | ||
- 'chore' | ||
- title: '⬆️ Dependency upgrades' | ||
labels: | ||
- 'bump' | ||
- 'dependencies' | ||
template: | | ||
## What's Changed | ||
$CHANGES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Build master | ||
on: | ||
push: | ||
branches: | ||
- master # Push events on master branch | ||
paths-ignore: | ||
- '**.md' | ||
- '**.MD' | ||
- '.gitignore' | ||
- 'LICENCE' | ||
- 'CODEOWNERS' | ||
|
||
jobs: | ||
build: | ||
name: Checkout code and run tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@master | ||
- name: Set up Java 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
architecture: x64 | ||
cache: 'gradle' | ||
- name: Run tests | ||
env: | ||
ORG_GRADLE_PROJECT_githubUser: x-access-token | ||
ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
./gradlew shadowJar |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Publish master | ||
on: | ||
release: | ||
types: [published] | ||
|
||
env: | ||
IMAGE: ghcr.io/${{ github.repository }} | ||
NEW_VERSION: ${{ github.event.release.tag_name }} | ||
|
||
jobs: | ||
build: | ||
name: Bygg pull-request | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: 'master' | ||
- name: Set up Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
architecture: x64 | ||
cache: 'gradle' | ||
- name: Build gradle artifacts | ||
shell: bash | ||
run: | | ||
./gradlew shadowJar | ||
env: | ||
ORG_GRADLE_PROJECT_githubUser: x-access-token | ||
ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build Docker images | ||
run: | | ||
docker build --tag ${{ env.IMAGE }}:${{ env.NEW_VERSION }} . | ||
- name: Push docker image to GitHub | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
docker login ghcr.io -u ${GITHUB_REPOSITORY} -p ${GITHUB_TOKEN} | ||
docker push ${{ env.IMAGE }}:${{ env.NEW_VERSION }} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters