Skip to content

Commit

Permalink
Checkout the project in the publish job
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g committed Aug 22, 2024
1 parent f623975 commit d794e52
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ jobs:
needs: [build-website, build-api-c, build-api-cpp, build-api-csharp, build-api-java, build-api-python]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download website
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -234,7 +237,7 @@ jobs:
name: api-python
path: api-python

- name: Copy & push the generated HTML
- name: Copy the generated HTML
run: |
set -x
Expand All @@ -248,10 +251,9 @@ jobs:
mv api-python/* $WEBSITE_API/python/html/
rmdir api-c api-c++ api-csharp api-java api-python
- name: Commit new site
- name: Push the new website
run: |
set -ex
ls -la
rsync \
-a \
--delete \
Expand All @@ -262,7 +264,6 @@ jobs:
whoami: asf-site
" > .asf.yaml
touch .nojekyll
ls -la
git config --global user.email "[email protected]"
git config --global user.name "Github Actions"
git checkout --orphan asf-site-staging
Expand Down

0 comments on commit d794e52

Please sign in to comment.