From 41feb84c29abf7f7619312a3bbc17634fed6ccef Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Sun, 6 Aug 2023 22:39:00 +0800 Subject: [PATCH] publish script --- .github/workflows/publish-exe.yml | 11 ++++------- Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-exe.yml b/.github/workflows/publish-exe.yml index 918c177..8b19a38 100644 --- a/.github/workflows/publish-exe.yml +++ b/.github/workflows/publish-exe.yml @@ -1,7 +1,7 @@ on: push: - branches: [master] - workflow_dispatch: + tags: + - "*" name: Build and publish executable @@ -24,10 +24,7 @@ jobs: run: mkdir build && mv target/x86_64-unknown-linux-gnu/release/tun2proxy build/tun2proxy-x86_64 - name: Publish uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - name: Automated build of ${{ github.sha }} files: build/* - draft: false - prerelease: true - body: This is an automated build of commit ${{ github.sha }}. - tag_name: r${{ github.sha }} \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 7752eee..a5ec577 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ authors = ["B. Blechschmidt"] edition = "2018" name = "tun2proxy" -version = "0.1.1" +version = "0.1.2" [lib] crate-type = ["cdylib", "lib"]