-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.4 KB
/
Copy pathbuild-blogpost.yml
File metadata and controls
62 lines (51 loc) · 1.4 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Build and Deploy Blogpost
on:
push:
branches: [main]
pull_request: {}
jobs:
build:
runs-on: ubuntu-latest
if: github.actor != 'github-actions[bot]'
steps:
- name: Checkout Repository
uses: actions/checkout@v7
- name: Set up .NET
uses: actions/setup-dotnet@v6
with:
dotnet-version: '10.0.x'
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.14'
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: '22'
- name: Install uv
run: pipx install uv
- name: Install just
uses: extractions/setup-just@v4
- name: Install dependencies
run: |
just setup
just restore
npm ci
- name: Build and generate blogpost
run: |
just build
just blogpost
just format
- name: Lint
run: just lint
- name: Open Pull Request
if: github.ref == 'refs/heads/main'
uses: peter-evans/create-pull-request@v8
with:
commit-message: "docs: generate blogpost file ${{ github.run_number }}"
title: "docs: blogpost update"
body: "This PR updates the blogpost with the latest changes."
branch: "update-blogpost"
delete-branch: true
add-paths: |
docs/