|
|
@ -6,7 +6,7 @@ on:
|
|
|
|
- "v*"
|
|
|
|
- "v*"
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
create-release:
|
|
|
|
create_release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Get current time
|
|
|
|
- name: Get current time
|
|
|
@ -22,8 +22,11 @@ jobs:
|
|
|
|
tag_name: ${{ github.ref }}
|
|
|
|
tag_name: ${{ github.ref }}
|
|
|
|
release_name: "Build ${{ steps.date.outputs.date }}"
|
|
|
|
release_name: "Build ${{ steps.date.outputs.date }}"
|
|
|
|
draft: true
|
|
|
|
draft: true
|
|
|
|
|
|
|
|
outputs:
|
|
|
|
|
|
|
|
upload_url: "${{ steps.release.outputs.upload_url }}"
|
|
|
|
build:
|
|
|
|
build:
|
|
|
|
|
|
|
|
needs:
|
|
|
|
|
|
|
|
- create_release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
matrix:
|
|
|
@ -74,6 +77,6 @@ jobs:
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
upload_url: ${{ jobs.create-release.steps.release.outputs.upload_url }}
|
|
|
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
|
|
|
asset_path: um
|
|
|
|
asset_path: um
|
|
|
|
asset_name: um-${{ matrix.GOOS }}-${{ matrix.GOARCH }}${{ matrix.BIN_SUFFIX }}
|
|
|
|
asset_name: um-${{ matrix.GOOS }}-${{ matrix.GOARCH }}${{ matrix.BIN_SUFFIX }}
|
|
|
|