mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-05-31 20:02:13 +00:00
30 lines
766 B
YAML
30 lines
766 B
YAML
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
|
|
name: Build and publish executable
|
|
|
|
jobs:
|
|
build_publish:
|
|
name: Build and publish executable
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
override: true
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: build
|
|
args: --release --target x86_64-unknown-linux-gnu
|
|
- name: Rename
|
|
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:
|
|
files: build/*
|