Skip to content

Commit

Permalink
build: reorder github actions steps
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-bouvier committed Jul 29, 2024
1 parent 4b50c4e commit 1fb4dd0
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,19 @@ jobs:
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
steps:
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Checkout
uses: actions/checkout@v4

- name: Setup Pages
id: pages
uses: actions/configure-pages@v5

- name: Persist npm cache
uses: actions/cache@v4
with:
Expand All @@ -52,16 +58,14 @@ jobs:
- name: Install dependencies
run: npm install

- name: Setup Pages
id: pages
uses: actions/configure-pages@v5

- name: Build static site
run: npm run build -- --pathprefix ${{ steps.deployment.outputs.page_url }}
run: npm run build -- --pathprefix="${{ steps.pages.outputs.base_url }}/"

- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v3
with:
path: ./_site

deploy:
environment:
Expand Down

0 comments on commit 1fb4dd0

Please sign in to comment.