From 00f14d6dad1abee25be8a4157fad2ff3e139c534 Mon Sep 17 00:00:00 2001 From: krau5 Date: Sun, 9 Feb 2025 10:42:55 +0100 Subject: [PATCH] Fix auto deploy workflow --- .github/workflows/deploy.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 0ae5dd6..ab7ef79 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -4,9 +4,6 @@ on: push: branches: - main - paths: - - 'src/**' - - 'index.html' jobs: build: @@ -35,5 +32,8 @@ jobs: - name: Build the project run: npm run build + - name: Install Surge + run: npm install -g surge + - name: Deploy to Surge - run: npm run deploy + run: surge --project ./dist --domain ${{ secrets.SURGE_DOMAIN }} --token ${{ secrets.SURGE_TOKEN }}