go-fastdfs/.github/workflows/release.yml

42 lines
1.0 KiB
YAML
Raw Permalink Normal View History

2021-05-17 13:39:20 +08:00
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: release
jobs:
build:
name: Build And Upload Release
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release ${{ github.ref }}
id: create_release
uses: actions/create-release@v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Build All Release
run: |
make clean
make vet
make build_all
- name: Upload file to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true