Upgrade to astro 3 and typescript 5.2 #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Site | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
name: Build & Deploy | |
runs-on: ubuntu-latest | |
env: | |
CI: true | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Set up PNPM | |
uses: pnpm/action-setup@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: 'pnpm' | |
- name: Install Dependencies | |
run: pnpm i | |
- name: Build site | |
run: pnpm build:site | |
- name: Deploy site | |
# Create a `.nojekyll` file so the `_astro` folder gets deployed | |
# https://github.blog/2009-12-29-bypassing-jekyll-on-github-pages/ | |
run: touch ./site/dist/.nojekyll && pnpm run deploy:site | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |