Skip to content

Synced with rc.1

Synced with rc.1 #77

name: Build and deploy website
on:
push:
branches:
- gh-pages
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
name: Build website
runs-on: ubuntu-latest
env:
CI: true
environment:
name: github-pages
url: https://scvs.owasp.org
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 14
- name: Run build script
run: |
cd site
node --version
yarn install
yarn run build
- name: List generated files
run: ls -al site/dist/
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'site/dist/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1