New site base #3
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
on: | |
pull_request: | |
branches: | |
- master | |
permissions: | |
id-token: write | |
pages: write | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
- name: Install deps | |
run: npm ci | |
- name: Vite Build | |
run: npm run build | |
- name: Upload build files | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist-files | |
path: ./dist | |
deploy: | |
name: Deploy | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download dist files | |
uses: actions/download-artifact@v4 | |
with: | |
name: dist-files | |
path: ./dist | |
- name: Deploy to Github Pages | |
uses: actions/deploy-pages@v4 | |
with: | |
artifact_name: dist-files |