-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (50 loc) · 1.53 KB
/
Copy pathdeploy.yml
File metadata and controls
64 lines (50 loc) · 1.53 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
name: Registry Auto Deploy
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository (with submodules)
uses: actions/checkout@v4
with:
submodules: recursive
- name: Update registry submodule to latest
run: |
git -C src/registry fetch origin main
git -C src/registry checkout main
git -C src/registry reset --hard origin/main
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install --frozen-lockfile
# ✅ BUILD WITH ENV VARIABLES
- name: Build project
env:
PUBLIC_GOOGLE_ANALYTICS_ID: ${{ vars.PUBLIC_GOOGLE_ANALYTICS_ID }}
PUBLIC_SITE_NAME: ${{ vars.PUBLIC_SITE_NAME }}
PUBLIC_SITE_URL: ${{ vars.PUBLIC_SITE_URL }}
PUBLIC_REPO_URL: ${{ vars.PUBLIC_REPO_URL }}
PUBLIC_AUTHOR_NAME: ${{ vars.PUBLIC_AUTHOR_NAME }}
PUBLIC_AUTHOR_URL: ${{ vars.PUBLIC_AUTHOR_URL }}
PUBLIC_DONATION_URL: ${{ vars.PUBLIC_DONATION_URL }}
run: bun run build
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4