Update deploy yml #8
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: Testing and deployment | |
on: [push] | |
jobs: | |
deploy-run: | |
runs-on: ${{ matrix.os }} | |
name: Deploy | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [20] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Setup node env | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Print node-version | |
run: node -v | |
- name: Install dependencies 📦 | |
run: npm install | |
- name: Generate 🔩 | |
run: npm run build | |
env: | |
PUBLIC_PATH: '/lacune/' | |
- name: Deploy 🏁 | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist |