Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yet Another fix for new stable docs workflow #127

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Yet Another fix for new stable docs workflow
Summary: need to checkout repo before checking in new changes

Reviewed By: JKSenthil

Differential Revision: D42906116

fbshipit-source-id: 7ad259f2e6e81e42da3007718213d3e931cb20e9
bobakfb authored and facebook-github-bot committed Feb 1, 2023
commit 5990a722c98e6d312c2af21431619fcdafc55112
10 changes: 9 additions & 1 deletion .github/workflows/release_build_docs.yaml
Original file line number Diff line number Diff line change
@@ -59,6 +59,14 @@ jobs:
branch: gh-pages # The branch the action should deploy to.
folder: docs/build/html # The folder the action should deploy.
target-folder: ${{ env.DOCS_DIRECTORY }}
update_stable_link:
needs: build_docs
runs_on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
with:
ref: gh-pages
- name: Create symbolic link to latest release
run: |
ln -s ${{ env.DOCS_DIRECTORY }} stable
@@ -69,6 +77,6 @@ jobs:
run: |
git commit -m "Update symbolic link to latest release"
- name: Push changes
uses: ad-m/github-push-action@master
uses: ad-m/github-push-action@0fafdd62b84042d49ec0cb92d9cac7f7ce4ec79e
with:
branch: gh-pages