Skip to content

ci: keep accepted Scorecard residuals out of code scanning (#43) #15

ci: keep accepted Scorecard residuals out of code scanning (#43)

ci: keep accepted Scorecard residuals out of code scanning (#43) #15

Workflow file for this run

name: deploy-pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-24.04
timeout-minutes: 10
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.3.14
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.bun/install/cache
key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }}
restore-keys: |
bun-${{ runner.os }}-
# Requires Pages to be enabled in repo Settings → Pages → Source =
# "GitHub Actions" before the first run. The default GITHUB_TOKEN cannot
# create a Pages site (that needs `administration: write`), so we ask
# the user to flip the toggle once per fork rather than widen the token.
- uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
id: pages
- run: bun install --frozen-lockfile
- name: build with public base path
env:
VITE_BASE_PATH: ${{ steps.pages.outputs.base_path }}
run: bun run build
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: ./dist
deploy:
needs: build
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0
id: deployment