Skip to content

Merge pull request #38 from RosyrRais/main #21

Merge pull request #38 from RosyrRais/main

Merge pull request #38 from RosyrRais/main #21

Workflow file for this run

name: Deploy
on:
workflow_dispatch: {}
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Generate .env file
run: |
echo "VITE_BASE=${{ vars.VITE_BASE }}" > .env
- run: pnpm i
- name: Build
run: pnpm build
- uses: actions/configure-pages@v2
- uses: actions/upload-pages-artifact@v1
with:
path: dist
- name: Deploy
id: deployment
uses: actions/deploy-pages@v1