]> jfr.im git - irc/anope/website.git/blob - .github/workflows/build.yml
Bump actions/upload-pages-artifact from 1 to 2
[irc/anope/website.git] / .github / workflows / build.yml
1 name: Build website
2 on:
3 push:
4 branches:
5 - master
6 workflow_dispatch:
7 permissions:
8 contents: read
9 id-token: write
10 pages: write
11 concurrency:
12 group: pages
13 cancel-in-progress: true
14 jobs:
15 build:
16 runs-on: ubuntu-latest
17 environment:
18 name: github-pages
19 url: ${{ steps.deployment.outputs.page_url }}
20 steps:
21 - uses: actions/checkout@v3
22
23 - name: Install dependencies
24 uses: ruby/setup-ruby@v1
25 with:
26 bundler-cache: true
27 ruby-version: 3.2
28
29 - name: Build website
30 run: |-
31 bundle exec jekyll build
32
33 - name: Upload GitHub artifact
34 uses: actions/upload-pages-artifact@v2
35 with:
36 path: ./_site
37
38 - name: Setup GitHub Pages
39 uses: actions/configure-pages@v2
40
41 - name: Deploy site to GitHub Pages
42 id: deployment
43 uses: actions/deploy-pages@v2