From 5d67575b3177cb60be063106e0deadda52a4604e Mon Sep 17 00:00:00 2001 From: Kumassy Date: Wed, 27 Jul 2022 23:34:59 +0900 Subject: [PATCH] fix ci --- .github/workflows/build.yml | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aeb7491..5f3ac83 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,26 +1,13 @@ name: Test and build on: - push: - branches: - - main + release: + types: [created] jobs: - test: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - uses: webfactory/ssh-agent@v0.5.3 - with: - ssh-private-key: ${{ secrets.DEPLOY_KEY_SECRET }} - - name: Run - run: cargo test - release: name: release ${{ matrix.target }} runs-on: ubuntu-latest - needs: test strategy: fail-fast: false matrix: @@ -34,15 +21,11 @@ jobs: steps: - uses: actions/checkout@master - - uses: webfactory/ssh-agent@v0.5.3 - with: - ssh-private-key: ${{ secrets.DEPLOY_KEY_SECRET }} - - name: Compile and release uses: rust-build/rust-build.action@v1.3.2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SRC_DIR: proxy_client + SRC_DIR: ownserver with: RUSTTARGET: ${{ matrix.target }} ARCHIVE_TYPES: ${{ matrix.archive }} \ No newline at end of file