Update main.yml
This commit is contained in:
parent
49d1f9d261
commit
84a10ef61d
|
@ -3,6 +3,8 @@ name: Build ChangeTimestamp
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
tags:
|
||||||
|
- "*"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
|
@ -29,6 +31,25 @@ jobs:
|
||||||
- name: Build solution
|
- name: Build solution
|
||||||
run: msbuild.exe ChangeTimestamp\ChangeTimestamp.sln /t:Build /p:Configuration=${{ matrix.configuration }}
|
run: msbuild.exe ChangeTimestamp\ChangeTimestamp.sln /t:Build /p:Configuration=${{ matrix.configuration }}
|
||||||
|
|
||||||
|
- name: Publish to release
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
tag_name: ${{ github.ref }}
|
||||||
|
release_name: Release ${{ github.ref }}
|
||||||
|
body: This is an automated release.
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
|
||||||
|
- name: Upload Release Asset
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: ./dist/ChangeTimestamp.exe
|
||||||
|
asset_name: ChangeTimestamp.exe
|
||||||
|
asset_content_type: application/octet-stream
|
||||||
|
|
||||||
- name: Create NuGet package
|
- name: Create NuGet package
|
||||||
run: nuget pack ChangeTimestamp\ChangeTimestamp.csproj -Properties Configuration=${{ matrix.configuration }} -OutputDirectory ./nuget
|
run: nuget pack ChangeTimestamp\ChangeTimestamp.csproj -Properties Configuration=${{ matrix.configuration }} -OutputDirectory ./nuget
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue