Skip to content

Deploy

Deploy #3

Workflow file for this run

name: Deploy
on:
workflow_run:
workflows: ['TwinSpark CI']
branches: ['main']
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: render
run: make deps render
- uses: actions/upload-pages-artifact@v1
with:
path: public
deploy:
needs: build
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1