Skip to content

Commit

Permalink
Deploy right after build on windows-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
adrenak committed Dec 15, 2024
1 parent a72f54b commit b3c6849
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/documention.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,31 @@ jobs:
- name: List generated site files
run: dir _site

# Upload the generated documentation
- name: Upload site artifact
uses: actions/upload-artifact@v4
with:
name: _site
path: _site # Must equals the 'build.dest' value on your docfx.json

# Deploy the generated documentation to the gh-pages branch
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
# with:
# submodules: true

# Download the generated documentation
- name: Download site artifact
uses: actions/download-artifact@v4
with:
name: _site
# # Upload the generated documentation
# - name: Upload site artifact
# uses: actions/upload-artifact@v4
# with:
# name: _site
# path: _site # Must equals the 'build.dest' value on your docfx.json

# # Deploy the generated documentation to the gh-pages branch
# deploy:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# # with:
# # submodules: true

# # Download the generated documentation
# - name: Download site artifact
# uses: actions/download-artifact@v4
# with:
# name: _site

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
Expand Down

0 comments on commit b3c6849

Please sign in to comment.