Skip to content

Commit

Permalink
Simplify the publish workflow
Browse files Browse the repository at this point in the history
This removes a bunch of boiler-plate comments which were left from the
template I used originally.

It also simplifies the name to just “Publish” since I feel this fits
better for what we do here.
  • Loading branch information
mgeisler committed Jan 3, 2023
1 parent 9d41acf commit 499657c
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
name: Publish

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
branches:
- main
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
group: pages
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always

jobs:
# Single deploy job since we're just deploying
deploy:
publish:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand All @@ -31,7 +29,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- uses: Swatinem/rust-cache@v2
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2

- name: Install mdbook
run: cargo install mdbook --version 0.4.25
Expand Down

0 comments on commit 499657c

Please sign in to comment.