Skip to content

Commit

Permalink
fix: Change order of master deploy (FuelLabs#4607)
Browse files Browse the repository at this point in the history
## Description
My previous PR FuelLabs#4606 is overwriting all other folders in
`ghpages/master` since it is the final step. This changes it to the
first step in that process.
  • Loading branch information
eureka-cpu authored May 31, 2023
1 parent 48104d0 commit 4494a6c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ jobs:
- name: Build Sway std library
run: forc doc --manifest-path ./sway-lib-std

- name: Deploy master std
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./sway-lib-std/out/doc
destination_dir: master
if: github.ref == 'refs/heads/master'

- name: Deploy master book
uses: peaceiris/actions-gh-pages@v3
with:
Expand All @@ -66,14 +74,6 @@ jobs:
destination_dir: master/reference
if: github.ref == 'refs/heads/master'

- name: Deploy master std
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./sway-lib-std/out/doc
destination_dir: master
if: github.ref == 'refs/heads/master'

- name: Create master book redirect file
run: |
mkdir ./tmp
Expand Down

0 comments on commit 4494a6c

Please sign in to comment.