Skip to content

ci: see if making a public dir fixes things #5

ci: see if making a public dir fixes things

ci: see if making a public dir fixes things #5

Workflow file for this run

name: GitHub Pages

Check failure on line 1 in .github/workflows/github-pages.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/github-pages.yml

Invalid workflow file

(Line: 24, Col: 8): Unrecognized named-value: 'steps'. Located at position 1 within expression: steps.deployment.outputs.page_url
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Permissions needed for deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
env:
CARGO_TERM_COLOR: always
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
jobs:
build:
runs-on: ubuntu-latest
steps:
# Build RustyPage
- name: Build
uses: actions/checkout@v4
# Install Rust toolchain
- name: Install stable Rust toolchain
uses: dtolnay/rust-toolchain@stable
# Install RustyPage
- name: Install RustyPage
run: cargo install --path .
# Make public directory
- name: Make public directory
run: mkdir ./public
# Build static page
- name: Build RustyPage
run: rustypage --config-file ./docs/config/examples/full.toml ./public/index.html
# Setup Pages
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './public'
# Deploy to GitHubPages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4