Skip to content

Commit

Permalink
fix docs pages upload
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmayorga committed Nov 23, 2023
1 parent e213eb0 commit 53a348d
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ jobs:
permissions:
contents: read
id-token: write
pages: write
runs-on: ubuntu-latest-4-cores
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout repository
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4
Expand Down Expand Up @@ -41,22 +46,14 @@ jobs:
run: |
echo "<meta http-equiv=\"refresh\" content=\"0; url=centrifuge_chain/index.html\">" \ > ./target/doc/index.html
- name: Setup Pages
uses: actions/configure-pages@v3

- name: upload Docs files
uses: actions/upload-pages-artifact@v2
with:
path: ./target/doc

deploy-docs:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
pages: write # to deploy to Pages
id-token: write
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy Docs
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v2

0 comments on commit 53a348d

Please sign in to comment.