Skip to content

Commit

Permalink
ci: changes on release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
QuadStingray authored and QuadStringray committed Mar 4, 2024
1 parent e954a97 commit 411e9ee
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 96 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/main_test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
41 changes: 41 additions & 0 deletions .github/workflows/release_and_changelog.yml
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
77 changes: 0 additions & 77 deletions changelog/config.js

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name" : "quest4s",
"organization" : "de.iwelt",
"version" : "0.7.1.snapshot",
"version" : "0.7.1",
"description" : "",
"directories" : {
"doc" : "docs"
Expand All @@ -23,6 +23,5 @@
"homepage" : "https://github.com/iWeltAG/quest4s#readme",
"devDependencies" : {
"vitepress" : "^1.0.0-alpha.2",
"@openapitools/openapi-generator-cli" : "^2.4.26"
}
}

0 comments on commit 411e9ee

Please sign in to comment.