From 29e757c263388a70e6b8775b56731f4cecda64ed Mon Sep 17 00:00:00 2001 From: Scott Nichols Date: Wed, 1 Jul 2020 08:38:38 -0700 Subject: [PATCH] fix release --- .github/workflows/release.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d8fb1b4..a4a666f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -39,11 +39,16 @@ jobs: fetch-depth: 1 path: ./src/github.com/${{ github.repository }} - - name: Get Release URL - id: get_release_url - uses: bruceadams/get-release@v1.2.0 + - name: Create Release + id: create_release + uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: true - name: Build and Publish images, Produce release artifact. working-directory: ./src/github.com/${{ github.repository }} @@ -58,7 +63,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ steps.get_release_url.outputs.upload_url }} + upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./src/github.com/${{ github.repository }}/release.yaml asset_name: release.yaml asset_content_type: text/plain