mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-24 10:02:45 +00:00
- `actions/download-artifact` 8.0.0 -> 8.0.2 - `actions/upload-artifact` 7.0.0 -> 7.0.2 - `reviewdog/action-setup` 1.3.0 -> 1.5.0 - `ruby/setup-ruby` 1.290.0 -> 1.335.0 Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
89 lines
2.9 KiB
YAML
89 lines
2.9 KiB
YAML
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
# Exceptions. See /LICENSE for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
name: GitHub Pages deploy
|
|
|
|
on:
|
|
# Runs on pushes targeting the default branch.
|
|
push:
|
|
branches: ['trunk']
|
|
|
|
# Allows you to run this workflow manually from the Actions tab.
|
|
workflow_dispatch:
|
|
|
|
# Cancel previous workflows on the PR when there are multiple fast commits.
|
|
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Set up uv
|
|
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
|
|
with:
|
|
enable-cache: true
|
|
version: '0.11.15'
|
|
|
|
- name: Prebuild actions
|
|
run: ./website/prebuild.py
|
|
- name: Setup Pages
|
|
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
|
|
- name: Setup Ruby
|
|
uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0
|
|
with:
|
|
# Runs 'bundle install' and caches installed gems automatically.
|
|
bundler-cache: true
|
|
# Increment this number if you need to re-download cached gems.
|
|
cache-version: 0
|
|
- name: Build with Jekyll
|
|
env:
|
|
JEKYLL_ENV: production
|
|
STEPS_PAGES_OUTPUTS_BASE_PATH: ${{ steps.pages.outputs.base_path }}
|
|
run: |
|
|
bundle exec jekyll build --verbose \
|
|
--source ./ \
|
|
--destination ./_site \
|
|
--baseurl "${STEPS_PAGES_OUTPUTS_BASE_PATH}"
|
|
- name: Upload artifact
|
|
# Automatically uploads an artifact from the './_site' directory by
|
|
# default.
|
|
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
|
|
|
|
deploy:
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages.
|
|
permissions:
|
|
pages: write
|
|
id-token: write
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@46b06cea07f9e64621fdf066ba77ac6915163d43 # v2.22.3
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
|