Skip to content

Commit

Permalink
fix: github action deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
caidanw committed Feb 25, 2024
1 parent 206d12a commit 2b0d2b4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/deploy_static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Deploy Svelte static site to GitHub Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]
branches: "master"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -23,11 +23,11 @@ concurrency:

jobs:
# Single deploy job since we're just deploying
build:
build_site:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4
- name: Configure GitHub Pages
uses: actions/[email protected]
with:
Expand All @@ -43,7 +43,7 @@ jobs:
npm ci
npm run build
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v1.0.7
uses: actions/upload-pages-artifact@v3
with:
# Artifact name
name: github-pages
Expand All @@ -53,11 +53,13 @@ jobs:
retention-days: 1

deploy:
needs: build_site
runs-on: ubuntu-latest

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build

steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit 2b0d2b4

Please sign in to comment.