Skip to content

Commit

Permalink
Update dotnet-core.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjusss authored Jun 24, 2020
1 parent d14c753 commit 8a3f794
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,16 @@ jobs:
run: |
rm -f ${HOME}/.docker/config.json
- name: Prepare
if: success() && startsWith(github.ref, 'refs/tags')
id: zipname
run: |
echo ::set-output name=zip_name::aliyun-ddns-${GITHUB_REF#refs/tags/}.zip
echo ::set-output name=version::${GITHUB_REF#refs/tags/}
- name: Create zip
if: success() && startsWith(github.ref, 'refs/tags')
run: |
zip -q -r aliyun-ddns-${GITHUB_REF#refs/tags/}.zip ./.github/out/*
zip -q -r ${{ steps.zipname.outputs.zip_name }} ./.github/out/*
- name: Create Release
if: success() && startsWith(github.ref, 'refs/tags')
Expand All @@ -125,8 +131,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${GITHUB_REF#refs/tags/}
release_name: Release ${GITHUB_REF#refs/tags/}
tag_name: ${{ steps.zipname.outputs.version }}
release_name: ${{ steps.zipname.outputs.version }}
draft: false
prerelease: false
- name: Upload Release Asset
Expand All @@ -137,6 +143,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./aliyun-ddns-${GITHUB_REF#refs/tags/}.zip
asset_name: aliyun-ddns-${GITHUB_REF#refs/tags/}.zip
asset_path: ./${{ steps.zipname.outputs.zip_name }}
asset_name: ${{ steps.zipname.outputs.zip_name }}
asset_content_type: application/zip

0 comments on commit 8a3f794

Please sign in to comment.