Skip to content

Commit

Permalink
Release asset name (#5)
Browse files Browse the repository at this point in the history
* Fixed release asset name
  • Loading branch information
apgrucza authored May 31, 2020
1 parent dd7fd03 commit a228ede
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: Upload Release Assets

on:
push:
# Match against refs/tags
tags:
- 'v*' # Push tag events matching v*, e.g. v1.0.0, v1.1.0
- 'v*' # Push events matching v*, e.g. v1.0.0, v1.1.0

jobs:
build:
Expand All @@ -12,7 +13,9 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Get variables
id: get_variables
run: echo "::set-output name=tag_name::${GITHUB_REF#refs/tags/}"
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
Expand All @@ -29,8 +32,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
tag_name: ${{ steps.get_variables.outputs.tag_name }}
release_name: ${{ steps.get_variables.outputs.tag_name }}
draft: false
prerelease: false

Expand All @@ -41,7 +44,7 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./distributions/okta_native/okta_native.zip
asset_name: okta_native_${GITHUB_REF#refs/tags/}.zip
asset_name: okta_native_${{ steps.get_variables.outputs.tag_name }}.zip
asset_content_type: application/zip
- name: Upload rotate_key_pair
uses: actions/upload-release-asset@v1
Expand All @@ -50,5 +53,5 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./distributions/rotate_key_pair/rotate_key_pair.zip
asset_name: rotate_key_pair_${GITHUB_REF#refs/tags/}.zip
asset_name: rotate_key_pair_${{ steps.get_variables.outputs.tag_name }}.zip
asset_content_type: application/zip

0 comments on commit a228ede

Please sign in to comment.