Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Update README.md

Update README.md #8

Workflow file for this run

name: Build and deploy to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
name: Build astro page
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v2.4.0
- name: Set up node
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run astro build
run: pnpm build
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./dist/
deploy:
name: Deploy to GitHub Pages
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v2
id: deployment