From e8d0d6c9c48b424a7b15a60ccb1b8fdbd36d34fe Mon Sep 17 00:00:00 2001 From: ~dolled-possum Date: Thu, 20 Jun 2024 10:56:12 -0400 Subject: [PATCH] tagged release build workflow --- .github/workflows/build_release.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/build_release.yml diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml new file mode 100644 index 00000000..e976414d --- /dev/null +++ b/.github/workflows/build_release.yml @@ -0,0 +1,23 @@ +name: rust tagged release in main CI + +on: + push: + tags: ['v[0-9].[0-9]+.[0-9]+'] + +jobs: + deploy: + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' + timeout-minutes: 60 + + steps: + - name: build and deploy kinode + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.SSH_PROD_API_HOST }} + username: ${{ secrets.SSH_PROD_USER }} + key: ${{ secrets.SSH_PROD_API_ED25519KEY }} + port: ${{ secrets.SSH_PROD_PORT }} + command_timeout: 60m + script: | + curl -X PUT http://localhost:8000/monitor/build-kinode