Skip to content

Commit

Permalink
Merge pull request #926 from loup-brun/redeployer-docs-gh-pages
Browse files Browse the repository at this point in the history
Redeployer docs gh pages
  • Loading branch information
RochDLY authored Sep 8, 2023
2 parents ad4f919 + 7fdd617 commit 64ae282
Show file tree
Hide file tree
Showing 3 changed files with 2,539 additions and 1,500 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
uses: actions/checkout@v3
- name: Detect package manager
id: detect-package-manager
working-directory: ./docs
# Stylo docs are in folder `docs/`!
run: |
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
echo "manager=yarn" >> $GITHUB_OUTPUT
Expand All @@ -46,28 +48,30 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "18"
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Restore cache
uses: actions/cache@v3
with:
path: |
.eleventy/cache
./docs/.eleventy/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-eleventy-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-eleventy-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
working-directory: ./docs
- name: Build
run: ${{ steps.detect-package-manager.outputs.manager }} run build
working-directory: ./docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./_site
path: ./docs/_site

# Deployment job
deploy:
Expand Down
Loading

0 comments on commit 64ae282

Please sign in to comment.