Skip to content

Commit

Permalink
Add comitting and pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Dec 20, 2023
1 parent 13e9cf7 commit 08beb16
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ jobs:
echo -e "::endgroup::\n::group::build doc"
sphinx-build -M html doc doc_output
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand All @@ -57,8 +55,21 @@ jobs:
with:
name: github-pages
path: master
- name: Check artifact download
run: ls master
- name: Unpack artifact
run:
tar -xvf master/artifact.tar
rm master/artifact.tar
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
git config --global user.email ${{ github.actor.user.login }}@github.com
git config --global user.name ${{ github.actor.user.login }}
git add master
git diff-index --quiet HEAD || git commit -m "Update latest documentation"
git push





Expand Down

0 comments on commit 08beb16

Please sign in to comment.