Skip to content

Release Wago.io

Release Wago.io #9

Workflow file for this run

name: "Release Wago.io"
on: [workflow_dispatch]
jobs:
wago-release-job:
name: Wago.io 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 Wago.io
run: |
mvn --batch-mode --no-transfer-progress \
package \
-P deploy-wago \
-D wago.auth-token=$TOKEN_WAGO
env:
TOKEN_WAGO: ${{ secrets.TOKEN_WAGO }}