Release snapshot of next-fabric8-version branch each day at midnight #129
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
name: Release snapshot of next-fabric8-version branch each day at midnight | |
on: | |
schedule: | |
- cron: '0 0 * * SUN' # run each Sunday at midnight | |
jobs: | |
build-for-latest-quarkus-version: | |
uses: ./.github/workflows/build-for-quarkus-version.yml | |
with: | |
quarkus-version-jq-cmd: '.platforms[0]."current-stream-id" as $current | .platforms[0].streams[] | select(.id == $current) | .releases[0].version' | |
java-version: 17 | |
branch: "next-fabric8-version" | |
native-modules: "integration-tests,samples" | |
release-snapshot: | |
runs-on: ubuntu-latest | |
needs: | |
- build-for-latest-quarkus-version | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: "next-fabric8-version" | |
- name: Import GPG key | |
id: import_gpg | |
uses: crazy-max/[email protected] | |
with: | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
cache: 'maven' | |
- name: Set version to 999.F8-SNAPSHOT and release snapshot | |
run: | | |
mvn versions:set -DnewVersion=999.F8-SNAPSHOT versions:commit | |
gpg --quiet --batch --yes --decrypt --passphrase="${{secrets.GPG_PASSPHRASE}}" --output maven-settings.xml .github/release/maven-settings.xml.gpg | |
mvn -B deploy -DperformRelease -Dno-samples -Prelease -s maven-settings.xml |