Skip to content

Add clause to etiquette about using English (#1060) #3710

Add clause to etiquette about using English (#1060)

Add clause to etiquette about using English (#1060) #3710

Workflow file for this run

name: Deploy To GitHub Pages
on:
schedule:
- cron: '0 22 * * *'
push:
branches:
- master
# Limit concurrent workflow runs to prevent resource conflicts and ensure clean deployments
concurrency:
group: pages
cancel-in-progress: false
# Default permissions for all jobs - minimal access
permissions: {}
jobs:
build:
name: Build site
env:
MDBOOK_VERSION: 0.5.1
RUN_BLACKSMITH: 1
runs-on: ubuntu-latest
steps:
# Checkout repository without persisting credentials to reduce attack surface
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Install mdbook
run: curl -sSL https://github.com/rust-lang/mdBook/releases/download/v${MDBOOK_VERSION}/mdbook-v${MDBOOK_VERSION}-x86_64-unknown-linux-gnu.tar.gz | tar -xz
- name: Build book
run: ./mdbook build
- name: Upload artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5
with:
path: ./book/html
deploy:
name: Deploy to GitHub Pages
if: github.repository_owner == 'rust-lang'
needs: build
# Required permissions for GitHub Pages deployment
permissions:
pages: write # Required to deploy to GitHub Pages
id-token: write # Required for OIDC authentication with GitHub Pages service
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- id: deployment
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5