mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 15:49:49 +00:00
41 lines
810 B
YAML
41 lines
810 B
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "bind/**"
|
|
- "cmd/**"
|
|
- "internal/**"
|
|
- "pkg/**"
|
|
- "ui/**"
|
|
- ".github/workflows/release.yml"
|
|
- ".github/release-drafter.yml"
|
|
- "go.mod"
|
|
- "go.sum"
|
|
- "Dockerfile"
|
|
|
|
env:
|
|
GO_VERSION: "1.19"
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
tag_name: ${{ steps.create_release.outputs.tag_name }}
|
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-go@v4
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
- uses: release-drafter/release-drafter@v5
|
|
id: create_release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|