Repository navigation
66 lines (56 loc) · 1.52 KB
/
Copy pathdeploy.yml
File metadata and controls
66 lines (56 loc) · 1.52 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
63
64
65
66
name: Deploy site
# The site reads every library from its repository and from Packagist when it is built, so it is built
# again every day to pick up new releases, besides every change to this repository. A library can also
# ask for a build right after a release with a repository_dispatch of type library-released.
on:
push:
branches:
- main
schedule:
- cron: '0 6 * * *'
workflow_dispatch:
repository_dispatch:
types:
- library-released
concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: true
permissions:
pages: write
contents: read
id-token: write
jobs:
build:
name: Build
runs-on: ubuntu-26.04
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Setup pnpm
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
- name: Setup Node
uses: actions/setup-node@v7
with:
cache: pnpm
node-version-file: .nvmrc
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build site
run: pnpm build
- name: Upload site
uses: actions/upload-pages-artifact@v5
with:
path: dist
deploy:
name: Deploy
needs: build
runs-on: ubuntu-26.04
timeout-minutes: 15
environment:
url: ${{ steps.deployment.outputs.page_url }}
name: github-pages
steps:
- id: deployment
name: Deploy to GitHub Pages
uses: actions/deploy-pages@v5