Skip to content

chore: remove legacy root index.html and static assets #3

chore: remove legacy root index.html and static assets

chore: remove legacy root index.html and static assets #3

Workflow file for this run

name: Deploy portfolio on GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
cache-dependency-path: portfolio/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install
working-directory: portfolio
- name: Build
run: pnpm run build
working-directory: portfolio
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: portfolio/dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4