Skip to content

Commit

Permalink
Use github-tag-action and release-action
Browse files Browse the repository at this point in the history
  • Loading branch information
sideeffffect committed Feb 2, 2024
1 parent e3022e4 commit d2a002f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [ '8', '11', '17' ]
java: [ '8', '11', '17', '21' ]
steps:
- uses: actions/[email protected]
with:
Expand All @@ -29,3 +29,27 @@ jobs:
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
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
java-version: '8'
- name: Coursier cache
uses: coursier/cache-action@v6
- name: sbt ci-release-cont ${{ github.ref }}
run: ./sbt ci-release-cont
- name: sbt ci-release ${{ github.ref }}
run: ./sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
Expand Down

0 comments on commit d2a002f

Please sign in to comment.