Skip to content

Commit

Permalink
Add deploy docs action
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaitanLyss committed Aug 7, 2024
1 parent 3f3fbc4 commit a445b94
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy docs

on:
push:
paths: ['src/**', 'astro.config.mjs', '.github/workflows/deploy-docs.yml', 'bun.lockb']
branches:
- main
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- run: bun run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'dist'
deploy:
permissions:
contents: read
pages: write
id-token: write
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@v2

0 comments on commit a445b94

Please sign in to comment.