-
-
Notifications
You must be signed in to change notification settings - Fork 0
97 lines (89 loc) · 2.27 KB
/
Copy pathdeploy.yml
File metadata and controls
97 lines (89 loc) · 2.27 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
concurrency:
group: pages-${{ github.ref }}
cancel-in-progress: true
jobs:
prepare-plugin-data:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- name: Upload workspace
uses: actions/upload-artifact@v7
with:
name: workspace-with-plugins
path: .
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: corepack enable
- uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- name: Format check
run: pnpm format:check
- name: Lint
run: pnpm lint:check
test:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: corepack enable
- uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- name: Tests (unit + nuxt)
run: pnpm test-all
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build:
needs: [prepare-plugin-data, lint, test]
runs-on: ubuntu-latest
steps:
- name: Download workspace
uses: actions/download-artifact@v8
with:
name: workspace-with-plugins
path: .
- run: corepack enable
- uses: actions/setup-node@v6
with:
node-version: '24'
- run: pnpm install --frozen-lockfile
- name: Update stats
run: pnpm run update-stats
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm run generate-github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUXT_APP_BASE_URL: /litestar.dev-v2/
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
path: ./.output/public
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5