Skip to content

Merge pull request #2 from openbcl/dev #3

Merge pull request #2 from openbcl/dev

Merge pull request #2 from openbcl/dev #3

Workflow file for this run

name: Deploy BESKID Frontend
on:
repository_dispatch:
workflow_dispatch:
push:
branches: [main]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install npm packages
run: npm install
- name: Build PWA
run: npm run build:prod
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist/beskid-frontend/browser
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4