1+ # GitHub Pages Configuration
2+ #
3+ # This workflow builds your repository's website and deploys it using GitHub Pages.
4+ name : Deploy website with GitHub Pages
5+
6+ on :
7+ # Run on all pushes to main.
8+ push :
9+ branches : ["main", "master"]
10+ # Allows you to run this workflow manually from the Actions tab
11+ workflow_dispatch :
12+
13+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14+ permissions :
15+ contents : read
16+ pages : write
17+ id-token : write
18+
19+ # Allow one concurrent deployment
20+ concurrency :
21+ group : " pages"
22+ cancel-in-progress : true
23+
24+ # We have two jobs:
25+ # (1) A "build" job that's responsible for building the website using Jekyll.
26+ # (2) A "deploy" job that pushes the output of the build job to GitHub Pages.
27+ jobs :
28+ # (1) Build job
29+ build :
30+ runs-on : ubuntu-latest
31+
32+ # Sequence of tasks for this job
33+ steps :
34+ # Check out latest code using a pre-existing GH action
35+ # Docs: https://github.com/actions/checkout
36+ - name : 📁 Checkout code
37+ uses : actions/checkout@v2
38+
39+ # Build the Primer Spec website. The action places the fully-built
40+ # website in an `_site/` directory.
41+ # Docs: https://github.com/seshrs/build-primer-spec-action
42+ - name : 🛠 Build Primer Spec website
43+ uses : seshrs/build-primer-spec-action@v1
44+ # Uncomment the following lines to prevent generating PDF versions of
45+ # each page.
46+ # with:
47+ # generate_pdfs: false
48+
49+ # Upload the _site directory created in the above step for use by
50+ # GitHub Pages.
51+ # Docs: https://github.com/actions/upload-pages-artifact
52+ - name : 🏺 Upload artifact
53+ uses : actions/upload-pages-artifact@v3
54+
55+ # (2) Deploy job
56+ deploy :
57+ environment :
58+ name : github-pages
59+ url : ${{ steps.deployment.outputs.page_url }}
60+ runs-on : ubuntu-latest
61+ needs : build
62+ steps :
63+ - name : Deploy to GitHub Pages
64+ id : deployment
65+ uses : actions/deploy-pages@v4
0 commit comments