Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
minikin committed Nov 13, 2024
1 parent 7f04239 commit 89fafa0
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Catalyst Voices Updates
name: Catalyst Voices Updates

on:
push:
Expand All @@ -16,19 +16,21 @@ jobs:
pages: write
id-token: write

defaults:
run:
working-directory: ./packages/static_shock_docs

steps:
- uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Setup Dart
uses: dart-lang/setup-dart@v1

- name: Install dependencies
run: npm ci
run: dart pub get

- name: Build
run: npm run build
- name: Build site
run: dart run bin/main.dart

- name: Setup Pages
uses: actions/configure-pages@v4
Expand All @@ -38,7 +40,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: github-pages
path: dist
path: ./build
retention-days: 1

- name: Deploy Preview
Expand All @@ -65,7 +67,7 @@ jobs:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: dist
path: ./build

- name: Deploy Production
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
Expand Down

0 comments on commit 89fafa0

Please sign in to comment.