-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into #24-switch-to-mautrix
- Loading branch information
Showing
4 changed files
with
19 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,13 +10,16 @@ on: | |
- '**.yaml' | ||
- '**.json' | ||
|
||
env: | ||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | ||
|
||
jobs: | ||
build_documentation: | ||
name: Build documentation | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v2 | ||
|
@@ -41,15 +44,11 @@ jobs: | |
run: npx redoc-cli bundle docs/swagger.yaml --output index.html | ||
|
||
- 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 [email protected]:pushbits/website.git website | ||
|
||
- name: Copy index.html | ||
|
@@ -59,8 +58,6 @@ jobs: | |
run: git config --global user.email "[email protected]" && git config --global user.name "PushBits Pipeline" | ||
|
||
- name: Commit and push | ||
env: | ||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | ||
run: | | ||
cd website | ||
git diff --quiet || ( git add . && git commit -m "Update documentation to ${{ github.sha }}" && git push ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters