-
Notifications
You must be signed in to change notification settings - Fork 323
44 lines (40 loc) · 1014 Bytes
/
docs.yml
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
name: mise-docs
on:
push:
paths:
- "docs/**"
branches:
- main
pull_request:
paths:
- "docs/**"
branches:
- main
concurrency:
group: mise-docs-release-${{ github.head_ref }}
cancel-in-progress: true
env:
MISE_EXPERIMENTAL: 1
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # for lastUpdated
- uses: jdx/mise-action@v2
with:
working_directory: docs
install: false
- run: mise install bun
working-directory: docs
- run: bun install
working-directory: docs
- run: bun run docs:build
working-directory: docs
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: mise run release-docs
working-directory: docs
env:
AWS_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_SECRET_ACCESS_KEY }}