mirror of
https://github.com/xvzc/SpoofDPI.git
synced 2024-12-22 14:26:31 +00:00
test
This commit is contained in:
parent
a498a24b31
commit
147925ca1e
54
.github/workflows/release.yaml
vendored
54
.github/workflows/release.yaml
vendored
@ -1,23 +1,41 @@
|
||||
# on:
|
||||
# push:
|
||||
# branches:
|
||||
# - "main"
|
||||
|
||||
# jobs:
|
||||
# linux:
|
||||
# name: "Release"
|
||||
# runs-on: "ubuntu-latest"
|
||||
|
||||
# steps:
|
||||
# # ...
|
||||
# - name: "Build & test"
|
||||
# run: |
|
||||
# ls -al && pwd && ls -al .. && GOOS=linux GOARCH=amd64 go build ./cmd/... && tar -zcvf spoof-dpi-linux.tar.gz ./spoof-dpi
|
||||
# - uses: "marvinpinto/action-automatic-releases@latest"
|
||||
# with:
|
||||
# repo_token: "${{ secrets.PERSONAL_TOKEN }}"
|
||||
# automatic_release_tag: "latest"
|
||||
# prerelease: true
|
||||
# title: "Development Build"
|
||||
# files: |
|
||||
# *.tar.gz
|
||||
|
||||
# .github/workflows/release.yaml
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
linux:
|
||||
name: "Release"
|
||||
runs-on: "ubuntu-latest"
|
||||
|
||||
release-linux-amd64:
|
||||
name: release linux/amd64
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# ...
|
||||
- name: "Build & test"
|
||||
run: |
|
||||
ls -al && pwd && ls -al .. && GOOS=linux GOARCH=amd64 go build ./cmd/... && tar -zcvf spoof-dpi-linux.tar.gz ./spoof-dpi
|
||||
- uses: "marvinpinto/action-automatic-releases@latest"
|
||||
- uses: actions/checkout@v2
|
||||
- uses: wangyoucao577/go-release-action@v1.25
|
||||
with:
|
||||
repo_token: "${{ secrets.PERSONAL_TOKEN }}"
|
||||
automatic_release_tag: "latest"
|
||||
prerelease: true
|
||||
title: "Development Build"
|
||||
files: |
|
||||
*.tar.gz
|
||||
github_token: ${{ secrets.PERSONAL_TOKEN }}
|
||||
goos: linux
|
||||
goarch: amd64
|
||||
|
Loading…
Reference in New Issue
Block a user