Skip to content

Commit 3d37e69

Browse files
committed
cicd(homepage): deploy homepage to netlify
1 parent 733ce9b commit 3d37e69

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/homepage.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
name: Deploy Homepage
22
on:
33
push:
4+
branches:
5+
- docs/homepage # TODO change to main later
46

57
jobs:
68
build:
79
runs-on: ubuntu-latest
10+
defaults:
11+
run:
12+
working-directory: ./homepage
13+
env:
14+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_POD_OS_HOMEPAGE_SITE_ID }}
15+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
816
steps:
917
- uses: actions/checkout@v4
1018
- name: Install Nix
1119
uses: DeterminateSystems/nix-installer-action@main
1220
- name: Build homepage
13-
run: |
14-
cd homepage
15-
nix-shell --run "make build"
21+
run: nix-shell --run "make build"
22+
- name: Deploy PodOS Browser
23+
run: npx netlify-cli deploy --dir=site --prod

0 commit comments

Comments
 (0)