-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.11 KB
/
Copy pathpages.yml
File metadata and controls
40 lines (36 loc) · 1.11 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
# Deploys the reDeploy marketing site (apps/website, Vite static build) to GitHub
# Pages on every push to main. Uses the Actions-based Pages deployment (not classic
# branch-deploy) because the artifact is a build output, not a checked-in folder.
# Custom domain: redeploy.thesolidchain.com (configured in the repo's Pages settings;
# apps/website/public/CNAME travels with the artifact for good measure).
name: pages
on:
push:
branches: [main]
paths:
- "apps/website/**"
- ".github/workflows/pages.yml"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: pnpm --filter @redeploy/website build
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: apps/website/dist
- id: deployment
uses: actions/deploy-pages@v4