Skip to content

Commit

Permalink
move ssh-related code to deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
drkameleon committed Nov 8, 2023
1 parent 8a1c8e1 commit caa4887
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 41 deletions.
39 changes: 9 additions & 30 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,33 +41,12 @@ jobs:
message: 'CI Package Deployment'
add: '*.art'

# jobs:
# build:
# name: "Deploy Packages"
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os:
# - ubuntu-latest
# version:
# - full
# steps:
# - name: "Cancel similar actions in progress"
# uses: styfle/[email protected]
# with:
# access_token: ${{ github.token }}

# - name: "Setup Arturo"
# uses: arturo-lang/arturo-action@main

# - name: "Checkout"
# uses: actions/checkout@main
# with:
# submodules: recursive

# - name: Run unit tests
# run: |
# echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
# arturo tools/ci.art
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update registry
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
script: |
cd /var/www/pkgr.art
git pull
12 changes: 1 addition & 11 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,4 @@ jobs:
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
arturo tools/ci.art
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: SSH
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
script: |
whoami
ls -al
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit caa4887

Please sign in to comment.