improve ci

pull/23/head
Emmm Monster 3 years ago
parent be6d3e5a44
commit 63d4e6e1d2
No known key found for this signature in database
GPG Key ID: C98279C83FB50DB9

@ -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 }}

Loading…
Cancel
Save