-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e954a97
commit 411e9ee
Showing
4 changed files
with
51 additions
and
96 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 |
---|---|---|
|
@@ -36,29 +36,21 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git Checkout | ||
uses: actions/checkout@v3.0.0 | ||
uses: actions/checkout@main | ||
with: | ||
fetch-depth: 0 | ||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 6.0.2 | ||
- name: install conventional-changelog-cli | ||
run: pnpm install -g conventional-changelog-cli | ||
- name: install conventional-github-release | ||
run: pnpm install -g conventional-github-releaser | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'corretto' | ||
java-version: '17' | ||
token: ${{ secrets.GH_ADMIN_TOKEN }} | ||
- id: install-secret-key | ||
name: Install gpg secret key | ||
run: cat <(echo -e "${{ secrets.PGP_SECRET_KEY }}") | gpg --batch --import | ||
- name: Set up JDK | ||
uses: coursier/setup-action@main | ||
with: | ||
jvm: corretto:11 | ||
apps: sbt scala scalac | ||
- name: Release | ||
env: | ||
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }} | ||
GITHUB_USER: ${{ secrets.GH_USERNAME }} | ||
GITHUB_USER: ${{ github.actor }} | ||
GITHUB_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }} | ||
SONATYPE_USER: ${{ secrets.SONATYPE_USER }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
|
@@ -67,4 +59,4 @@ jobs: | |
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "iWelt CI" | ||
sbt ci-release | ||
sbt ci-release |
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,41 @@ | ||
name: Github Release and Changelog | ||
|
||
on: | ||
push: | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+ | ||
|
||
jobs: | ||
update-change-infos: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
|
||
- name: Update CHANGELOG | ||
id: changelog | ||
uses: requarks/changelog-action@main | ||
with: | ||
token: ${{ github.token }} | ||
tag: ${{ github.ref_name }} | ||
|
||
- name: Create Release | ||
uses: ncipollo/release-action@main | ||
with: | ||
allowUpdates: true | ||
draft: false | ||
makeLatest: true | ||
name: ${{ github.ref_name }} | ||
body: ${{ steps.changelog.outputs.changes }} | ||
token: ${{ github.token }} | ||
|
||
- name: Update versions file | ||
run: | | ||
echo "{\"mongocamp\": \"${{ github.ref_name }}\"}" > ./docs/versions.json; | ||
git add ./docs/versions.json | ||
- name: Commit CHANGELOG.md | ||
uses: stefanzweifel/git-auto-commit-action@master | ||
with: | ||
branch: main | ||
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }}' | ||
file_pattern: CHANGELOG.md |
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