Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
rename generated docs to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
IMax153 committed Nov 17, 2023
1 parent 6c4b377 commit 5c0ae00
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
pages: write # To deploy to GitHub Pages
id-token: write # To verify the deployment originates from an appropriate source

jobs:
pages:
name: Pages
build:
name: Build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -35,12 +28,24 @@ jobs:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/jekyll-build-pages@v1
with:
source: ./docs
source: ./generated-docs
destination: ./_site
- name: Upload pages artifact
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v2

deploy:
name: Deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: build
permissions:
pages: write # To deploy to GitHub Pages
id-token: write # To verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@v2
1 change: 0 additions & 1 deletion docgen.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"outDir": "generated-docs",
"exclude": ["src/internal/**/*.ts"]
}

0 comments on commit 5c0ae00

Please sign in to comment.