fix(deps): update rust crate serde_json to v1.0.133 (#70) #209
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow to build your docs with oranda (and mdbook) | |
# and deploy them to Github Pages | |
name: Web | |
# We're going to push to the gh-pages branch, so we need that permission | |
permissions: | |
contents: write | |
# What situations do we want to build docs in? | |
# All of these work independently and can be removed / commented out | |
# if you don't want oranda/mdbook running in that situation | |
on: | |
push: | |
branches: | |
- main | |
# only show up there). | |
workflow_run: | |
workflows: [ "Release" ] | |
types: | |
- completed | |
# Alright, let's do it! | |
jobs: | |
web: | |
name: Build and deploy site and docs | |
environment: website | |
runs-on: ubuntu-latest | |
steps: | |
# Setup | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: swatinem/rust-cache@v2 | |
# If you use any mdbook plugins, here's the place to install them! | |
# Install and run oranda (and mdbook)! | |
# | |
# This will write all output to ./public/ (including copying mdbook's output to there). | |
- name: Install and run oranda | |
run: | | |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/oranda/releases/download/v0.6.1/oranda-installer.sh | sh | |
oranda build | |
# Deploy to our gh-pages branch (creating it if it doesn't exist). | |
# The "public" dir that oranda made above will become the root dir | |
# of this branch. | |
# | |
# Note that once the gh-pages branch exists, you must | |
# go into repo's settings > pages and set "deploy from branch: gh-pages". | |
# The other defaults work fine. | |
- name: Deploy to Github Pages | |
uses: JamesIves/[email protected] | |
# ONLY if we're on main (so no PRs or feature branches allowed!) | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
branch: gh-pages | |
# Gotta tell the action where to find oranda's output | |
folder: public | |
token: ${{ secrets.GITHUB_TOKEN }} | |
single-commit: true |