added release action for dev branch

This commit is contained in:
divyam234 2023-09-24 02:31:57 +05:30
parent 3683c17c3c
commit 83cbc8d6f7

36
.github/workflows/dev.yml vendored Normal file
View 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