Merge pull request #4223 from github/create-pr-action/update-collecti… #756
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Publish Jekyll for GitHub Pages | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📂 checkout | |
uses: actions/checkout@v4 | |
- name: 💎 setup ruby | |
uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0 | |
with: | |
bundler-cache: true | |
cache-version: 0 | |
- name: 📄 setup pages | |
id: pages | |
uses: actions/configure-pages@v4 | |
- name: 🔨 install dependencies & build site | |
uses: actions/[email protected] | |
- name: ⚡️ upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
deploy: | |
needs: build | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🚀 deploy | |
id: deployment | |
uses: actions/[email protected] |