mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-01-23 15:42:59 +08:00
35 lines
No EOL
922 B
YAML
35 lines
No EOL
922 B
YAML
# .github/workflows/release.yaml
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
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 |