Delete main.yml

This commit is contained in:
Sora 2023-04-16 09:43:23 +08:00 committed by GitHub
parent f842ccb4c7
commit f7b83d6731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 61 deletions

View File

@ -1,61 +0,0 @@
name: Build ChangeTimestamp
on:
push:
branches: [main]
tags:
- "*"
pull_request:
branches: [main]
jobs:
build:
runs-on: windows-2019
strategy:
matrix:
configuration: [Release]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use .NET Framework version 4.0
uses: microsoft/setup-msbuild@v1.0.2
with:
dotnet-version: '4.0'
- name: Restore NuGet packages
run: nuget restore ChangeTimestamp\ChangeTimestamp.sln
- name: Build solution
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
run: nuget pack ChangeTimestamp\ChangeTimestamp.csproj -Properties Configuration=${{ matrix.configuration }} -OutputDirectory ./nuget
- name: Publish NuGet package to GitHub Packages
uses: nuget/setup-nuget@v1
with:
nuget-api-key: ${{ secrets.GITHUB_TOKEN }}
nuget-version: ${{ github.ref }}
run: nuget push ./nuget/*.nupkg -Source "github"