-
Notifications
You must be signed in to change notification settings - Fork 323
43 lines (39 loc) · 974 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
name: docs
on:
push:
paths:
- "docs/**"
branches:
- main
pull_request:
paths:
- "docs/**"
branches:
- main
concurrency:
group: docs-${{ github.head_ref }}
cancel-in-progress: true
env:
MISE_EXPERIMENTAL: 1
jobs:
docs:
if: github.repository == 'jdx/mise'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # for lastUpdated
- uses: jdx/mise-action@v2
with:
install_args: 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 }}