Develop Branch Workflow #26
Workflow file for this run
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: Develop Branch Workflow | |
on: | |
push: | |
branches: | |
- develop | |
paths-ignore: | |
- '.github/workflows/**' | |
workflow_dispatch: | |
jobs: | |
Build: | |
uses: ./.github/workflows/build.yml | |
secrets: inherit | |
Upload: | |
needs: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install SSH key | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.ASSETS_PRIVATE_KEY }} | |
- name: Download artifacts from build | |
uses: actions/download-artifact@v2 | |
with: | |
path: dist | |
- name: Upload assets via SCP | |
env: | |
HOST: ${{ secrets.ASSETS_HOST }} | |
PORT: ${{ secrets.ASSETS_PORT }} | |
USER: ${{ secrets.ASSETS_USER }} | |
run: | | |
scp -P $PORT -o StrictHostKeyChecking=no -r dist/* $USER@$HOST:/files/ | |
shell: bash |