CI: Specify which dist to publish #3
Workflow file for this run
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: Website Upload | |
on: | |
push: | |
# We only run this GitHub action upon new commits to `main` | |
branches: | |
- main | |
- initialdocs # Temporary branch for initial documentation | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./docs | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Bun | |
uses: oven-sh/setup-bun@v1 | |
- name: Install | |
run: bun install | |
- name: Build | |
run: bun run build | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@4.1.4 | |
with: | |
branch: gh-pages | |
folder: docs/dist | |
# Remove previous build files | |
clean: true | |
# Do not remove the `.nojekyll` file: we have manually added an empty `.nojekyll` file at the root of the `gh-pages` branch and we don't want having to re-create it after each build. | |
clean-exclude: | | |
.nojekyll | |
CNAME |