Skip to content

Merge pull request #43 from sourcebots/feature/sp2024 #123

Merge pull request #43 from sourcebots/feature/sp2024

Merge pull request #43 from sourcebots/feature/sp2024 #123

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- uses: actions/cache@v3
with:
path: ~/.npm
key: node-${{ hashFiles('package-lock.json') }}
- run: npm ci
- run: npm run build
- run: npm run test
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs:
- build
if: github.ref_name == 'main'
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1