From 89fafa0b3466192efe198999e5246ef73637e3c3 Mon Sep 17 00:00:00 2001 From: minikin Date: Wed, 13 Nov 2024 16:04:40 +0100 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 17a80c0..6e79691 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: Deploy Catalyst Voices Updates +name: Catalyst Voices Updates on: push: @@ -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 @@ -38,7 +40,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: github-pages - path: dist + path: ./build retention-days: 1 - name: Deploy Preview @@ -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'