Skip to content

Commit

Permalink
Deploy to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
BenBowers committed Mar 13, 2024
1 parent d0a704e commit 1ea3386
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/deploy-to-pages.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
push:
merge:
branches: ['main']

# 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
Expand Down Expand Up @@ -51,7 +44,7 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Build
run: pnpm turbo run build --filter=@hexy/docs
run: pnpm turbo @hexy/docs#build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const config = {
title: "I'm bringing Hexy Back",
tagline: "Those other frameworks don't know how to act",
url: 'https://benbowers.github.io',
baseUrl: '/',
baseUrl: '/hexyback-workshop/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
Expand Down
6 changes: 5 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
"test-ci"
]
},
"build": {}
"@hexy/docs#build": {
"dependsOn": [
"@hexy/docs#gen-api-docs-all"
]
}
}
}

0 comments on commit 1ea3386

Please sign in to comment.