Skip to content

Commit

Permalink
ci: add deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DaleSeo committed Oct 25, 2024
1 parent feaaa8f commit 4a94d0d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 🚢 Deployment

on:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun run build
- uses: actions/configure-pages@v4
- uses: actions/upload-pages-artifact@v3
with:
path: "./dist"
- uses: actions/deploy-pages@v4
id: deployment

0 comments on commit 4a94d0d

Please sign in to comment.