set up base path #39
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
# .github/workflows/main.yml | |
name: "π Deployment" | |
on: | |
push: | |
branches: | |
- main | |
- devel | |
jobs: | |
Deployment: | |
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/devel' }} | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: π° Set up bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: π₯ Checkout code | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.ref }} | |
- name: π Install dependencies | |
run: bun i | |
- name: π¨ Build | |
run: bun run build | |
- name: π Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/dist | |
publish_branch: pages |