diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..651e0cf --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: "Release" + +on: + push: + tags: + - "**" + +jobs: + release: + name: "Release" + runs-on: "ubuntu-latest" + steps: + - name: "Determine tag" + run: "echo \"RELEASE_TAG=${GITHUB_REF#refs/tags/}\" >> $GITHUB_ENV" + - name: Checkout + uses: actions/checkout@v4 + + - name: "Build Artifact" + run: | + dotnet publish ./src/Console/Console.csproj -c Release -r win-x64 -o ./output + + - name: "Upload Artifact" + uses: actions/upload-artifact@v2 + with: + name: ${{ env.RELEASE_TAG }} + path: "./output/*.exe" \ No newline at end of file diff --git a/.gitignore b/.gitignore index 04cab08..514dc0f 100644 --- a/.gitignore +++ b/.gitignore @@ -444,4 +444,7 @@ MigrationBackup/ # Ionide (cross platform F# VS Code tools) working folder .ionide/ -# End of https://www.toptal.com/developers/gitignore/api/dotnetcore,rider,vs \ No newline at end of file +# End of https://www.toptal.com/developers/gitignore/api/dotnetcore,rider,vs + +# exe build +output/ \ No newline at end of file diff --git a/src/Console/Console.csproj b/src/Console/Console.csproj index f89e019..afdd682 100644 --- a/src/Console/Console.csproj +++ b/src/Console/Console.csproj @@ -3,6 +3,8 @@ Exe net8.0 + SiteWarmer + true enable enable