Skip to content

Commit

Permalink
cicd: Added publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Ruaux committed Jun 1, 2023
1 parent 91ae96b commit 01ca360
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Release

on:
workflow_dispatch:
inputs:
version:
description: 'Release version'
required: true

permissions:
actions: write
id-token: write
contents: write

jobs:
precheck:
name: Precheck
runs-on: ubuntu-latest
outputs:
version: ${{ steps.vars.outputs.VERSION }}
steps:
- name: Checkout
uses: actions/checkout@v3

release:
name: Release
needs: [precheck, jlink]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: main
fetch-depth: 0

- name: Version
id: vars
shell: bash
run: |
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
echo ${{ github.event.inputs.version }} > VERSION
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: ${{ vars.JAVA_VERSION }}
distribution: ${{ vars.JAVA_DISTRO }}
cache: gradle

- name: Deploy
run: |
./gradlew -Pprofile=release -PreproducibleBuild=true createGuide gitPublishPush -S

0 comments on commit 01ca360

Please sign in to comment.