Skip to content

Commit

Permalink
Fix workflow (#2)
Browse files Browse the repository at this point in the history
* Fix workflow
  • Loading branch information
dzeyelid authored Jan 18, 2021
1 parent f0bcf9a commit 66b3436
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release-functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.dotnet-version }}
- uses: actions/cache@v2
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget
- name: Build package
run: |
pushd ${{ env.functions-dir }}
Expand All @@ -53,7 +59,6 @@ jobs:
- uses: actions/download-artifact@v2
with:
name: ${{ env.artifact-name-function-package }}
path: ${{ env.archive-file-name }}
- name: Get latest release
id: get_latest_release
continue-on-error: true
Expand All @@ -73,14 +78,15 @@ jobs:
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ steps.next_release_version.outputs.next-version }}
tag_name: v${{ steps.next_release_version.outputs.next-version }}
release_name: v${{ steps.next_release_version.outputs.next-version }}
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.archive-file-name }}
asset_path: ./${{ env.archive-file-name }}
asset_name: ${{ env.archive-file-name }}
asset_content_type: application/zip
env:
Expand Down

0 comments on commit 66b3436

Please sign in to comment.