Skip to content

Release GitHub

Release GitHub #15

name: "Release GitHub"
on: [workflow_dispatch]
jobs:
github-release-job:
name: GitHub Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Java and Maven
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
cache: 'maven'
- name: Cache Local Maven Repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Package Production
run: mvn generate-resources -D generate.sources.overwrite=true -P release
- name: Publish Package to GitHub
run: |
mvn --batch-mode --no-transfer-progress \
package \
-P deploy-github \
-D github.auth-token=$GITHUB_TOKEN
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}