Skip to content
Merged
Show file tree
Hide file tree
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
46 changes: 0 additions & 46 deletions .github/actions/doc-publish/action.yaml

This file was deleted.

24 changes: 14 additions & 10 deletions .github/workflows/docs-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,23 @@ jobs:
docs: docs
astarte-interfaces: edgehog-astarte-interfaces
version: ${{ steps.compute-version.outputs.version }}
- name: Setup SSH

- name: Commit files
if: ${{ inputs.publish }}
working-directory: docs
run: |
git config --local user.email "edgehog-machine@ispirata.com"
git config --local user.name "Edgehog Bot"
git add .
git commit -m "Update Documentation"
- name: Push changes
if: ${{ inputs.publish }}
working-directory: docs
run: |
eval `ssh-agent -t 300 -s`
echo "${{ secrets.publish-key }}" | ssh-add -
mkdir -p ~/.ssh/
ssh-keyscan github.com >> ~/.ssh/known_hosts
- name: Setup git
if: ${{ inputs.publish }}
run: |
git config --global user.email "edgehog-machine@ispirata.com"
git config --global user.name "Edgehog Bot"
- uses: ./edgehog/.github/actions/doc-publish
if: ${{ inputs.publish }}
with:
docs: docs
git remote add topush "git@github.com:edgehog-device-manager/docs.git"
git fetch topush
git push topush main
Loading