From b254f5085aaf6ed462268ef47a9234c76cc1a894 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Wed, 3 Nov 2021 14:37:19 -0400 Subject: [PATCH] No more deploy! --- .github/workflows/deploy.yml | 62 ------------------------------------ 1 file changed, 62 deletions(-) delete mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index e2cb9dd..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: Deploy - -on: - push: - branches: [ master ] - -jobs: - build: - name: Build a Release Binary - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - id: cargo - with: - toolchain: stable - components: clippy - - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-rust-${{ steps.cargo.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.lock') }}-release-build - - name: Build release - run: cargo build --release - env: - SQLX_OFFLINE: "true" - - name: Upload compiled binary artifact - uses: actions/upload-artifact@v1 - with: - name: youmubot-release - path: target/release/youmubot - deploy: - name: Deploy to remote - needs: build - runs-on: ubuntu-latest - steps: - - name: Collect artifact - uses: actions/download-artifact@v1 - with: - name: youmubot-release - - name: Upload binary - uses: appleboy/scp-action@master - with: - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - key: ${{ secrets.SSH_KEY }} - port: ${{ secrets.PORT }} - source: youmubot-release/youmubot - target: youmubot - strip_components: 1 - - name: Restart youmubot - uses: appleboy/ssh-action@master - with: - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - key: ${{ secrets.SSH_KEY }} - port: ${{ secrets.PORT }} - script: | - chmod +x youmubot/youmubot - systemctl --user restart youmubot