1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-02-12 07:56:25 +02:00

Merge pull request #98 from google/simplify-publish

Simplify the publish workflow
This commit is contained in:
Martin Geisler 2023-01-03 15:57:50 +01:00 committed by GitHub
commit 78766a6bf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,11 @@
# 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
@ -17,12 +13,14 @@ permissions:
# 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 }}
@ -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