This commit is contained in:
xvzc 2022-03-11 11:05:20 +09:00
parent a498a24b31
commit 147925ca1e

View File

@ -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: on:
push: release:
branches: types: [created]
- "main"
jobs: jobs:
linux: release-linux-amd64:
name: "Release" name: release linux/amd64
runs-on: "ubuntu-latest" runs-on: ubuntu-latest
steps: steps:
# ... - uses: actions/checkout@v2
- name: "Build & test" - uses: wangyoucao577/go-release-action@v1.25
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: with:
repo_token: "${{ secrets.PERSONAL_TOKEN }}" github_token: ${{ secrets.PERSONAL_TOKEN }}
automatic_release_tag: "latest" goos: linux
prerelease: true goarch: amd64
title: "Development Build"
files: |
*.tar.gz