Beta-Export-Server-Deploy #801
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
name: 'Beta-Export-Server-Deploy' | |
on: | |
workflow_run: | |
workflows: ['Deploy'] | |
types: | |
- completed | |
jobs: | |
deploy: | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
name: Deploy on beta export server | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Read deploy script contents | |
id: script | |
uses: juliangruber/read-file-action@v1 | |
with: | |
path: beta-export-deploy.sh | |
- name: Deploy beta export server over SSH | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.BETA_EXPORT_SERVER_HOST }} | |
username: ${{ secrets.BETA_EXPORT_SERVER_USER }} | |
key: ${{ secrets.BETA_EXPORT_SERVER_KEY }} | |
script_stop: true | |
script: ${{ steps.script.outputs.content }} |