Publish Anamnesis #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Anamnesis | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Get version date | |
uses: 1466587594/get-current-time@v2 | |
id: version-date | |
with: | |
format: YYYY-MM-DD | |
- name: Get current time | |
uses: 1466587594/get-current-time@v2 | |
id: build-time | |
with: | |
format: YYYY, MM, DD, HH, mm, ss | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Checkout Submodules | |
uses: snickerbockers/submodules-init@v4 | |
- name: REplace version info | |
uses: Nambers/[email protected] | |
with: | |
path: './Anamnesis/VersionInfo.cs' | |
oldString: '2000, 01, 01, 00, 00, 00' | |
newString: ${{ steps.build-time.outputs.formattedTime }} | |
- name: Install .NET | |
uses: actions/[email protected] | |
with: | |
dotnet-version: 6.0.x | |
- name: Deploy Anamnesis | |
run: dotnet publish Anamnesis/Anamnesis.csproj /p:PublishProfile=".\Anamnesis\Properties\PublishProfiles\FolderProfile.pubxml" | |
- name: Deploy Update Extractor | |
run: dotnet publish UpdateExtractor/UpdateExtractor.csproj /p:PublishProfile=".\UpdateExtractor\Properties\PublishProfiles\FolderProfile.pubxml" | |
- name: Zip Release | |
uses: TheDoctor0/[email protected] | |
with: | |
filename: '../Anamnesis.zip' | |
directory: './publish/' | |
exclusions: '*.pdb* *.xml*' | |
- name: Upload Release | |
uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: true | |
artifacts: "Anamnesis.zip" | |
name: ${{ steps.version-date.outputs.formattedTime }} | |
tag: v${{ steps.version-date.outputs.formattedTime }} | |
#body: ${{ steps.Changelog.outputs.changelog }} | |
draft: true | |
token: ${{ secrets.GITHUB_TOKEN }} |