publish script

This commit is contained in:
ssrlive 2023-08-06 22:39:00 +08:00
parent 5fbce82032
commit 41feb84c29
2 changed files with 5 additions and 8 deletions

View file

@ -1,7 +1,7 @@
on: on:
push: push:
branches: [master] tags:
workflow_dispatch: - "*"
name: Build and publish executable 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 run: mkdir build && mv target/x86_64-unknown-linux-gnu/release/tun2proxy build/tun2proxy-x86_64
- name: Publish - name: Publish
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
name: Automated build of ${{ github.sha }}
files: build/* files: build/*
draft: false
prerelease: true
body: This is an automated build of commit ${{ github.sha }}.
tag_name: r${{ github.sha }}

View file

@ -2,7 +2,7 @@
authors = ["B. Blechschmidt"] authors = ["B. Blechschmidt"]
edition = "2018" edition = "2018"
name = "tun2proxy" name = "tun2proxy"
version = "0.1.1" version = "0.1.2"
[lib] [lib]
crate-type = ["cdylib", "lib"] crate-type = ["cdylib", "lib"]