Bump Doc 90402cb #209
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: documentation | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
jobs: | |
checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/[email protected] | |
with: | |
node-version: "18.x" | |
- name: Test Build | |
run: | | |
npm i | |
npm run build | |
audit: | |
if: github.event_name != 'pull_request' | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
needs: [checks] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/[email protected] | |
with: | |
node-version: "18.x" | |
- name: Audit | |
run: | | |
npm i | |
npm audit | |
gh-release: | |
if: github.event_name != 'pull_request' | |
runs-on: ubuntu-latest | |
needs: [checks] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/[email protected] | |
with: | |
node-version: "18.x" | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.DEPLOY_PRIVATE_KEY }} | |
- name: rewrite links | |
run: | | |
node ./prepareRelease.js | |
- name: Release to GitHub Pages | |
env: | |
USE_SSH: true | |
GIT_USER: git | |
run: | | |
git config --global user.email ${{ secrets.OPENKFWCI_GITHUB_EMAIL }} | |
git config --global user.name "openkfwCI" | |
npm i | |
npm run deploy |