diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3606ef5..eebf2fa 100755 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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