on: push: tags: - 'v*' name: Create Release jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Build run: | export PATH=${PATH}:`go env GOPATH`/bin v=${{ github.ref }} ./release.sh - name: Release uses: softprops/action-gh-release@v1 with: fail_on_unmatched_files: true files: release/*.* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}