Skip to content

Commit

Permalink
deno deploy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tjjfvi committed Jan 24, 2025
1 parent a527feb commit 8732df9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Publish GitHub Pages

on:
push:
branches:
- main

permissions:
contents: read
Expand All @@ -27,7 +25,14 @@ jobs:
- uses: actions/configure-pages@v3
- uses: actions/upload-pages-artifact@v2
with:
path: "docs/static"
path: docs/static

- id: deployment
- if: github.ref_name == 'main'
uses: actions/deploy-pages@v1

- if: github.ref_name != 'main'
uses: denoland/deployctl@v1
with:
project: vine-dev
root: docs/static
entrypoint: https://deno.land/std/http/file_server.ts

0 comments on commit 8732df9

Please sign in to comment.