Added missing fagsystem. #356
Workflow file for this run
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
name: Release (Github Package Registry) | |
on: | |
pull_request: | |
types: | |
- closed | |
branches: | |
- 'main' | |
paths-ignore: | |
- '.github/dependabot.yml' | |
env: | |
IMAGE: ghcr.io/${{ github.repository }}/klage-kodeverk:${{ github.sha }} | |
jobs: | |
release: | |
if: github.event.pull_request.merged == true | |
name: Create Release | |
permissions: | |
contents: write | |
packages: write | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
name: Checkout | |
- id: bump | |
uses: zwaldowski/match-label-action@main | |
with: | |
allowed: major,minor,patch | |
- id: next_version | |
uses: zwaldowski/semver-release-action@main | |
name: Prepare and tag release with semver | |
with: | |
bump: ${{ steps.bump.outputs.match }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: upload artifact | |
run: ./gradlew -Pversion="$(echo ${{steps.next_version.outputs.version_tag}})" publish | |
env: | |
GITHUB_USERNAME: x-access-token | |
GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: v${{steps.next_version.outputs.version_tag}} | |
release_name: v${{steps.next_version.outputs.version_tag}} |