We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b132704 commit a3593deCopy full SHA for a3593de
1 file changed
.github/actions/doc-publish/action.yaml
@@ -30,6 +30,10 @@ inputs:
30
runs:
31
using: "composite"
32
steps:
33
+ - name: Setup SSH
34
+ - uses: webfactory/ssh-agent@v0.10.0
35
+ with:
36
+ ssh-private-key: ${{ secrets.publish-key }}
37
- name: Commit files
38
working-directory: ${{ inputs.docs }}
39
shell: bash
@@ -39,13 +43,9 @@ runs:
43
git add .
40
44
git commit -m "Update Documentation"
41
45
- name: Push changes
42
- working-directory: ./docs
46
+ working-directory: ${{ inputs.docs }}
47
48
run: |
- eval `ssh-agent -t 60 -s`
- echo "${{ inputs.deploy-key }}" | ssh-add -
- mkdir -p ~/.ssh/
- ssh-keyscan github.com >> ~/.ssh/known_hosts
49
git remote add topush "git@github.com:edgehog-device-manager/docs.git"
50
git fetch topush
51
git push topush main
0 commit comments