mirror of
https://github.com/expressjs/expressjs.com.git
synced 2026-02-23 20:32:45 +00:00
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
name: Deploy Website
|
|
|
|
on:
|
|
push:
|
|
branches: ["gh-pages"]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: "pages"
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
- name: Setup Ruby
|
|
uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # https://github.com/ruby/setup-ruby/releases/tag/v1.263.0
|
|
with:
|
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
|
cache-version: 0 # Increment this number if you need to re-download cached gems
|
|
- name: Setup Pages
|
|
id: pages
|
|
uses: actions/configure-pages@v5
|
|
- name: Build with Jekyll
|
|
# Outputs to the './_site' directory by default
|
|
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
|
|
env:
|
|
JEKYLL_ENV: production
|
|
- name: Upload artifact
|
|
# Automatically uploads an artifact from the './_site' directory by default
|
|
uses: actions/upload-pages-artifact@v4
|
|
|
|
deploy:
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
steps:
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v4 |