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

CI: publish-docs: do not make it conditional #1334

Merged
merged 1 commit into from
Oct 14, 2024
Merged
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
12 changes: 5 additions & 7 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,11 @@ jobs:
git checkout Production
git config --local user.email "[email protected]"
git config --local user.name "AtomVM Doc Bot"
if [ -n "$(git status --porcelain=v1)" ]; then
git add .
git commit -m "Update Documentation"
echo "PUBLISH=true" >> "$GITHUB_OUTPUT"
fi
ls -la doc/
git add .
git diff --exit-code || git commit -m "Update Documentation"
- name: Push changes
if: github.repository == 'atomvm/AtomVM' && steps.commit_files.outputs.PUBLISH == 'true'
if: github.repository == 'atomvm/AtomVM'
working-directory: /home/runner/work/AtomVM/AtomVM/www
run: |
eval `ssh-agent -t 60 -s`
Expand All @@ -139,4 +137,4 @@ jobs:
ssh-keyscan github.com >> ~/.ssh/known_hosts
git remote add push_dest "[email protected]:atomvm/atomvm_www.git"
git fetch push_dest
git push --set-upstream push_dest Production
git diff --exit-code origin/Production || git push --set-upstream push_dest Production
Loading