build: update dependencies and ci #61
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: CI | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: npm ci | |
- name: Astro check | |
run: npm run check | |
- name: Build project | |
run: npm run build | |
- name: Upload static files as artifact | |
id: deployment | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: dist/ | |
- name: Deploy to GitHub Pages | |
env: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
uses: actions/deploy-pages@v4 |