Skip to content

Deploy to GitHub Pages #5

Deploy to GitHub Pages

Deploy to GitHub Pages #5

Workflow file for this run

name: Deploy to GitHub Pages
on:
workflow_dispatch:
push:
tags:
- "*"
paths-ignore:
- ".github/"
- "**/Makefile.toml"
- "release.toml"
- "LICENSE*"
- "README.md"
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- uses: dsherret/rust-toolchain-file@v1
- name: Install Trunk
uses: jetli/trunk-action@v0.4.0
with:
version: "v0.17.5"
- name: Build
working-directory: ./examples/real_world
run: trunk build --release --public-url /srtemplate/
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./examples/real_world/dist
deploy:
environment:
name: github-pages
url: ${{ steps.prod.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: prod
uses: actions/deploy-pages@v2