mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-05-14 14:46:43 +02:00
Simplify the publish workflow
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.
This commit is contained in:
parent
9d41acf22d
commit
499657c830
21
.github/workflows/publish.yml
vendored
21
.github/workflows/publish.yml
vendored
@ -1,15 +1,11 @@
|
|||||||
# Simple workflow for deploying static content to GitHub Pages
|
name: Publish
|
||||||
name: Deploy static content to Pages
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# Runs on pushes targeting the default branch
|
|
||||||
push:
|
push:
|
||||||
branches: ["main"]
|
branches:
|
||||||
|
- main
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
pages: write
|
pages: write
|
||||||
@ -17,12 +13,14 @@ permissions:
|
|||||||
|
|
||||||
# Allow one concurrent deployment
|
# Allow one concurrent deployment
|
||||||
concurrency:
|
concurrency:
|
||||||
group: "pages"
|
group: pages
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Single deploy job since we're just deploying
|
publish:
|
||||||
deploy:
|
|
||||||
environment:
|
environment:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
@ -31,7 +29,8 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- name: Setup Rust cache
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: Install mdbook
|
- name: Install mdbook
|
||||||
run: cargo install mdbook --version 0.4.25
|
run: cargo install mdbook --version 0.4.25
|
||||||
|
Loading…
x
Reference in New Issue
Block a user