Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sherlockwisdom committed Sep 4, 2023
1 parent 6599b3e commit 6d7c2d8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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/ssh-action@v1.0.0
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

0 comments on commit 6d7c2d8

Please sign in to comment.