Merge pull request #348 from MikAoJk/dependabot/npm_and_yarn/types/no… #389
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: build and deploy main branch | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
env: | |
NEXT_PUBLIC_BASE_PATH: /random-diagnosis-code | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: setup bun | |
uses: oven-sh/setup-bun@v2 | |
- name: Install packages | |
run: bun install | |
- name: Build | |
run: bun run build | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./out | |
deploy: | |
if: github.actor != 'dependabot[bot]' | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |