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 0d926c7 commit d571a04
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,31 @@ jobs:
if: always() && !startsWith(github.event_name, 'pull_request')
run: |
rm -f ${HOME}/.docker/config.json
- name: Create zip
if: success() && startsWith(github.ref, 'refs/tags')
run: |
zip -q -r aliyun-ddns-${{ github.ref }}.zip ./.github/out/*
- name: Create Release
if: success() && startsWith(github.ref, 'refs/tags')
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
if: success() && startsWith(github.ref, 'refs/tags')
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./aliyun-ddns-${{ github.ref }}.zip
asset_name: aliyun-ddns-${{ github.ref }}.zip
asset_content_type: application/zip

0 comments on commit d571a04

Please sign in to comment.