mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-01-09 00:29:57 +08:00
added release action for dev branch
This commit is contained in:
parent
3683c17c3c
commit
83cbc8d6f7
1 changed files with 36 additions and 0 deletions
36
.github/workflows/dev.yml
vendored
Normal file
36
.github/workflows/dev.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# .github/workflows/release.yaml
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branch: dev
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
releases-matrix:
|
||||||
|
name: Release Go Binary
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
packages: write
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
goos: [linux]
|
||||||
|
goarch: [amd64]
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
- uses: divyam234/go-release-action@master
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
goos: ${{ matrix.goos }}
|
||||||
|
goarch: ${{ matrix.goarch }}
|
||||||
|
binary_name: "teldrive"
|
||||||
|
extra_files: LICENSE README.md
|
||||||
|
goversion: "https://dl.google.com/go/go1.21.1.linux-amd64.tar.gz"
|
||||||
|
pre_command: make pre-ui && make ui && export CGO_ENABLED=0
|
||||||
|
release_tag: canary
|
||||||
|
overwrite: true
|
||||||
|
ldflags: -s -w -extldflags=-static
|
Loading…
Reference in a new issue