Skip to content

Commit

Permalink
fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Nichols committed Jul 1, 2020
1 parent 2da35eb commit 29e757c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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

0 comments on commit 29e757c

Please sign in to comment.