Skip to content

Commit

Permalink
update workflow so it builds into a subfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
petr-hajek committed Sep 17, 2024
1 parent 4498ee6 commit afd6e87
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
# Runs on any branch
push:
branches: ['main']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -17,7 +15,7 @@ permissions:

# Allow one concurrent deployment
concurrency:
group: 'pages'
group: "pages"
cancel-in-progress: true

jobs:
Expand All @@ -34,18 +32,14 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
# Upload dist folder
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
folder: dist
target-folder: start

0 comments on commit afd6e87

Please sign in to comment.