Skip to content

Update deploy_pages.yml #5

Update deploy_pages.yml

Update deploy_pages.yml #5

Workflow file for this run

# Workflow to build and deploy a SvelteKit website to GitHub Pages
name: Deploy static SvelteKit content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["prod"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-site:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Bun
# You may pin to the exact commit or the version.
# uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5
uses: oven-sh/setup-bun@v2
with:
# The version of Bun to install. (e.g. "latest", "canary", "1.0.0", "1.0.x", <sha>)
bun-version: latest
- name: Install dependencies
run: bun i
- name: Setup Pages
uses: actions/configure-pages@v3
with:
static_site_generator: "sveltekit"
- name: Build site
run: bun run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'build/'
deploy:
needs: build-site
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2