Skip to content

Develop Branch Workflow #31

Develop Branch Workflow

Develop Branch Workflow #31

Workflow file for this run

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