Skip to content

Commit

Permalink
Add Artifact generation
Browse files Browse the repository at this point in the history
Closes #37
  • Loading branch information
baynezy committed Jan 3, 2024
1 parent 9c6af97 commit bc2cab9
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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"
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
# End of https://www.toptal.com/developers/gitignore/api/dotnetcore,rider,vs

# exe build
output/
2 changes: 2 additions & 0 deletions src/Console/Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>SiteWarmer</AssemblyName>
<PublishSingleFile>true</PublishSingleFile>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down

0 comments on commit bc2cab9

Please sign in to comment.