mirror of
https://github.com/pushbits/server.git
synced 2025-04-29 18:26:49 +02:00
add push to website repo
This commit is contained in:
parent
62af2424fa
commit
1f7568f2e7
1 changed files with 16 additions and 1 deletions
17
.github/workflows/documentation.yml
vendored
17
.github/workflows/documentation.yml
vendored
|
@ -26,4 +26,19 @@ jobs:
|
||||||
run: /home/runner/go/bin/swag init --parseDependency=true -d . -g cmd/pushbits/main.go
|
run: /home/runner/go/bin/swag init --parseDependency=true -d . -g cmd/pushbits/main.go
|
||||||
- name: Build static html
|
- name: Build static html
|
||||||
run: npx redoc-cli bundle docs/swagger.yaml --output index.html
|
run: npx redoc-cli bundle docs/swagger.yaml --output index.html
|
||||||
# TODO copy index.html to new repo
|
- name: Setup SSH Keys and known_hosts
|
||||||
|
env:
|
||||||
|
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
||||||
|
run: |
|
||||||
|
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
|
||||||
|
ssh-add - <<< "${{ secrets.WEBSITE_DEPLOY_KEY }}"
|
||||||
|
- name: Checkout website
|
||||||
|
env:
|
||||||
|
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
||||||
|
run: mkdir /website && git clone git@github.com:pushbits/website.git /website
|
||||||
|
- name: Copy index.html
|
||||||
|
run: cp index.html /website/index.html
|
||||||
|
- name: Commit and push
|
||||||
|
env:
|
||||||
|
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
||||||
|
run: cd /website && git commit -m "Update to ${{ github.sha }}" && git push
|
||||||
|
|
Loading…
Add table
Reference in a new issue