Skip to content

Commit

Permalink
Added page deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrej committed Sep 22, 2023
1 parent ec2b36d commit 040dc8b
Showing 1 changed file with 41 additions and 21 deletions.
62 changes: 41 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,44 @@ name: Node CI
on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18, 20]

defaults:
run:
working-directory: product-configurator

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn build
#- run: yarn test
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18, 20]

defaults:
run:
working-directory: product-configurator

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn build
#- run: yarn test
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
path: dist

deploy:
needs: build

permissions:
pages: write
id-token: write

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

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 040dc8b

Please sign in to comment.