Skip to content

ci: update version after release #13

ci: update version after release

ci: update version after release #13

name: Build and Release Process
on:
push:
branches:
- 'main'
- 'master'
repository_dispatch:
types: [build]
jobs:
unit-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [ '11', '17' ]
questdb-version: ['7.0.0', '6.7','6.6','6.5']
steps:
- uses: actions/[email protected]
- name: Set up JDK ${{ matrix.Java }}
uses: actions/[email protected]
with:
distribution: 'corretto'
java-version: ${{ matrix.java }}
- name: Start QuestDb ${{ matrix.mongodb-version }}
uses: QuadStingray/[email protected]
with:
questdb-version: ${{ matrix.questdb-version }}
- name: Run tests
run: sbt test
release:
needs:
- unit-test
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/[email protected]
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'
- id: install-secret-key
name: Install gpg secret key
run: cat <(echo -e "${{ secrets.PGP_SECRET_KEY }}") | gpg --batch --import
- name: Release
env:
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
GITHUB_USER: ${{ secrets.GH_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSWORD }}
PGP_SECRET: ${{ secrets.PGP_SECRET_KEY }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "iWelt CI"
sbt ci-release