From cfef88ebe6c875679c20a7a3e0163720c212a19f Mon Sep 17 00:00:00 2001 From: cn-kali-team Date: Fri, 27 Sep 2024 16:56:12 +0800 Subject: [PATCH] update --- .github/workflows/default-release.yml | 7 +------ .github/workflows/deploy.yml | 23 ----------------------- 2 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/default-release.yml b/.github/workflows/default-release.yml index fdd2210..fc08a32 100644 --- a/.github/workflows/default-release.yml +++ b/.github/workflows/default-release.yml @@ -43,16 +43,11 @@ jobs: target: x86_64-unknown-linux-musl - name: Build release binary run: cargo install --git https://github.com/getzola/zola.git --features=indexing-zh - - name: Build archive - shell: bash - run: | - bin_file="~/.cargo/bin/zola" - echo "BIN_FILE=$bin_file" >> $GITHUB_ENV - name: Upload binary to release uses: svenstaro/upload-release-action@v1-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ${{ env.BIN_FILE }} + file: /home/runner/.cargo/bin/zola asset_name: zola tag: default overwrite: true diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index c6a359c..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Deploy - -on: - push: - branches: - - main - workflow_dispatch: - -jobs: - deploy: - runs-on: ubuntu-latest - name: Deploy - steps: - - uses: actions/checkout@v3 - - name: "Install Rust toolchain" - run: rustup target add wasm32-unknown-unknown - - name: Cache - uses: Swatinem/rust-cache@v1 - - name: Deploy - uses: cloudflare/wrangler-action@v3.3.2 - with: - apiToken: ${{ secrets.CF_API_TOKEN }} -# run: cargo install wrangler && wrangler publish \ No newline at end of file