Skip to content

Deploy to Pages

Deploy to Pages #3

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
# push:
# branches: [ "master" ]
# pull_request:
# branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!
- name: Setup Pkl
# You may pin to the exact commit or the version.
# uses: pkl-community/setup-pkl@7d7dfce5535a0e9c10557da69de3dcf5635a0c77
uses: pkl-community/setup-pkl@v0
with:
# The Pkl version to install.
pkl-version: 0.26.2
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
# Runs a set of commands using the runners shell
- name: Build schemas
run: |
deno task gen
- name: Configure GitHub Pages
uses: actions/configure-pages@v3
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: './schemas'
deploy:
# Add a dependency to the build job
needs: build
# 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
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4