Skip to content

Merge pull request #14 from hgschmie/issue-2021 #41

Merge pull request #14 from hgschmie/issue-2021

Merge pull request #14 from hgschmie/issue-2021 #41

Workflow file for this run

---
name: CD from master pushes
on:
push:
branches:
- master
jobs:
cd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 21
distribution: temurin
cache: maven
server-id: sonatype-nexus-snapshots
server-username: NEXUS_REPO_USER
server-password: NEXUS_REPO_PASSWORD
- name: deploy code
env:
NEXUS_REPO_USER: ${{ secrets.NEXUS_REPO_USER }}
NEXUS_REPO_PASSWORD: ${{ secrets.NEXUS_REPO_PASSWORD }}
MAVEN_CONFIG: "-B -fae"
run: |
make deploy
site:
runs-on: ubuntu-latest
steps:
- name: configure git user
run: |
git config --global user.name github-cd-action
git config --global user.email [email protected]
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 21
distribution: temurin
cache: maven
server-id: github
server-password: SITE_DEPLOY
- name: deploy documentation
env:
SITE_DEPLOY: ${{ secrets.SITE_DEPLOY_TOKEN }}
MAVEN_CONFIG: "-B -fae"
run: |
make deploy-site