teldrive/.github/workflows/dev.yml
2023-09-24 13:01:20 +05:30

36 lines
No EOL
925 B
YAML

# .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