Skip to content

Merge pull request #36 from DataFlowAnalysis/creation-preview-imporve… #187

Merge pull request #36 from DataFlowAnalysis/creation-preview-imporve…

Merge pull request #36 from DataFlowAnalysis/creation-preview-imporve… #187

Workflow file for this run

name: Build using vite and deploy to GitHub Pages when on main
on:
- push
# Configures premissions for the used GitHub Token that are required for Pages.
permissions:
contents: read # To get the source
pages: write # To deploy to pages
id-token: write # To verify deployment (done automatically by the official action)
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
- name: Setup GitHub Pages
if: github.ref == 'refs/heads/main'
uses: actions/checkout@v3
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Upload Pages artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v1
with:
path: "./dist/"
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: actions/deploy-pages@v2