Skip to content

Create main.yml

Create main.yml #3

Workflow file for this run

name: Run SSH command
on:
push:
branches: [staging]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Extract branch name
id: extract-branch
run: echo "::set-output name=branch::$(echo $GITHUB_REF | awk -F/ '{print $3}')"
- name: Run SSH command
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
cd /root/apk-reproduce/Deku-SMS-Android && \
git checkout ${{ steps.extract-branch.outputs.branch }} && \
git pull origin ${{ steps.extract-branch.outputs.branch }} && \
make release-cd