Skip to content

Use github-tag-action and release-action #624

Use github-tag-action and release-action

Use github-tag-action and release-action #624

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
jobs:
ciJvms:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
java: [ '8', '11', '17', '21' ]
steps:
- uses: actions/[email protected]
with:
fetch-depth: 100
- name: Fetch tags
run: git fetch --depth=100 origin +refs/tags/*:refs/tags/*
- uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Coursier cache
uses: coursier/cache-action@v6
- name: sbt ci ${{ github.ref }}
run: ./sbt ci
ci:
runs-on: ubuntu-22.04
needs: [ ciJvms ]
steps:
- name: Aggregate of lint, and all tests
run: echo "ci passed"
tag-on-merge:
name: Tag On Merge
runs-on: [self-hosted, cp-default]
timeout-minutes: 30
needs: [ci]
if: github.event_name != 'pull_request'
steps:
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.RELEASE_PAT }}
default_bump: patch
fetch_all_tags: true
tag_prefix: "v"
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
token: ${{ secrets.RELEASE_PAT }}
generateReleaseNotes: true