Skip to content

Commit

Permalink
Tweak deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
willeastcott committed Nov 12, 2024
1 parent d1acb3d commit 6fcd0a1
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ permissions:
pages: write
id-token: write

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

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -20,23 +25,25 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install NPM Dependencies
- name: Install dependencies
run: npm ci

- name: Build Web Components
- name: Build
run: npm run build

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '.'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 6fcd0a1

Please sign in to comment.