add example of painting an image without img tag #201
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 test | |
on: push | |
jobs: | |
node: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v1 | |
- name: Node.js v20 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- run: bun install --frozen-lockfile | |
- run: npm run build | |
- run: npm run test | |
bun: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Bun v1 | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: 1 | |
- run: bun install --frozen-lockfile | |
- run: bun run build | |
- run: bun run test | |
deploy: | |
needs: bun | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Bun v1 | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: 1 | |
- run: bun install --frozen-lockfile | |
- run: bun run build | |
- run: bun run vite build --minify false --base dropflow/ | |
- name: Upload site | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
name: github-pages | |
path: dist/site/ | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v4 |