Skip to content

Commit

Permalink
fix: fix gh-pages yml
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Jul 3, 2024
1 parent 44e720c commit eb6d533
Show file tree
Hide file tree
Showing 5 changed files with 2,684 additions and 28,314 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["gh-pages"]

# 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:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"docs:build": "jsdoc-to-mdx -c ./jsdoc-to-mdx.json",
"docs:version": "node ./config/docs-version-up",
"demo:build": "npm run docs:build && npm run docs:version && npm run build --prefix packages/docs && npm run build:storybook --prefix packages/infinitegrid",
"demo:deploy": "lerna-helper deploy --base @egjs/infinitegrid --remote upstream",
"demo:deploy": "gh-pages -d ./demo --dest=./ --add --remote upstream",
"deploy": "lerna-helper deploy --base @egjs/infinitegrid --remote upstream",
"release": "lerna-helper release --base @egjs/infinitegrid --remote upstream --branch master"
},
"repository": {
Expand Down
20 changes: 17 additions & 3 deletions packages/docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ module.exports = {
},
{
to: "https://naver.github.io/egjs-infinitegrid/storybook",
label: "Demos",
label: "InfiniteGrid Demos",
position: "left"
},
{
to: "https://naver.github.io/egjs-grid/storybook",
label: "Grid Demos",
position: "left"
},
{
Expand Down Expand Up @@ -83,14 +88,23 @@ module.exports = {
]
},
{
title: 'Demo',
title: 'InfiniteGrid Demo',
items: [
{
label: 'Demos',
label: 'InfiniteGrid Demos',
to: "https://naver.github.io/egjs-infinitegrid/storybook",
},
]
},
{
title: 'Grid Demo',
items: [
{
label: 'Grid Demos',
to: "https://naver.github.io/egjs-grid/storybook",
},
]
},
{
title: 'More',
items: [
Expand Down
Loading

0 comments on commit eb6d533

Please sign in to comment.