Skip to content

Commit

Permalink
Refine the way build tasks are defined so that each stage is separate.
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimian committed Jan 14, 2025
1 parent 386e7ff commit 7a4e271
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ jobs:
with:
version: 3.x

- name: Restore dependencies, build, test & distribute
- name: Run unit tests and produce a coverage report
run: task cover
env:
CONFIGURATION: ${{ matrix.configuration }}

- name: Publish a self-container version of the app and create the installer
run: task distribute
env:
CONFIGURATION: ${{ matrix.configuration }}
Expand Down
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,21 @@ After cloning the source code from GitHub, follow the steps below:
3. Build the project using the default **Debug** configuration and create the installer
```
task distribute
task build
```
You may set the **CONFIGURATION** environment variable to **Release** to create a release
build.
You may create a release build by passing the **CONFIGURATION** variable to the task:
```
task build CONFIGURATION=Release
```
4. Once you're ready, you can publish a self-container version of the application and create the
installer using the **distribute** target
```
task distribute CONFIGURATION=Release
```
You'll now find an installer under the **artifacts** sub-directory.
Expand Down
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ tasks:
--runtime win-x64
--self-contained
deps:
- test
- restore

distribute:
desc: Create an installer for distribution.
Expand Down

0 comments on commit 7a4e271

Please sign in to comment.