增加tag配置 优化单规则更新失败的逻辑 #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release mosdns | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.21' | |
check-latest: true | |
cache: true | |
#- name: Test | |
# run: go test -race -v ./... | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Build | |
run: python ./release.py | |
env: | |
CGO_ENABLED: '0' | |
- name: Publish | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: './release/*.zip' | |
prerelease: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |