Skip to content

Deploy

Deploy #632

Workflow file for this run

name: Deploy
on:
push:
branches: [ main ]
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '50 4 * * *'
defaults:
run:
shell: bash -leo pipefail {0} {0}
jobs:
deploy:
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected]
with:
cache: true
- name: Building
run: pixi run build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "build"
- name: Deploy artifact
id: deployment
uses: actions/deploy-pages@v4