-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (37 loc) · 910 Bytes
/
site-deploy.yml
File metadata and controls
44 lines (37 loc) · 910 Bytes
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
name: 'site-deploy'
on:
push:
branches: [main]
paths:
- 'apps/site/**'
- '.github/workflows/deploy-website.yml'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-slim
steps:
- name: Checkout your repository using git
uses: actions/checkout@v5
# Install dependencies at root (Monorepo context)
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun i
- name: Install, build, and upload your site
uses: withastro/action@v5
with:
path: 'apps/site'
deploy:
needs: build
runs-on: ubuntu-slim
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4