Merge pull request #231 from Fraunhofer-AISEC/imprint #26
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: Frontend Build and Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
cache-dependency-path: 'frontend/yarn.lock' | |
- name: Install Validation Dependencies | |
working-directory: tools/validation | |
run: npm install | |
- name: Create PQDB SQLite-File | |
run: node tools/validation/validate.js frontend/public/pqdb.sqlite frontend/src/tables.svg | |
- name: Install Frontend Dependencies and Build | |
working-directory: frontend | |
run: | | |
yarn install | |
yarn build | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: frontend/build | |
SINGLE_COMMIT: true |