-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (35 loc) · 932 Bytes
/
build-pr.yml
File metadata and controls
38 lines (35 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build website PR
on:
#pull_request:
# branches:
# - "main"
# types:
# - closed
concurrency:
group: "builders"
cancel-in-progress: true
jobs:
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
- name: Install dependencies
run: |
curl -sSL https://install.python-poetry.org | python3 -
make install
- name: Build website
run: make website
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "Built website"
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: main