Skip to content

Commit

Permalink
Coerce Earthly to publish all the results locally
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaykul committed Nov 6, 2023
1 parent 1402aeb commit 7b49b26
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
submodules: true
fetch-depth: 0

- name: earthly +publish
run: earthly --strict +publish
- name: earthly +github
run: earthly --strict +github

- uses: actions/upload-artifact@v3
with:
Expand Down
7 changes: 7 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,10 @@ publish:
FROM +build
RUN ["pwsh", "--command", "Invoke-Build", "-Task", "Publish", "-File", "Build.build.ps1", "-Verbose"]
SAVE ARTIFACT $OUTPUT_ROOT/publish/*.nupkg AS LOCAL ./Modules/$MODULE_NAME-Packages/

# this literally exists just to publish all the artifact from one step
github:
FROM +publish
SAVE ARTIFACT $OUTPUT_ROOT/$MODULE_NAME AS LOCAL ./Modules/$MODULE_NAME
SAVE ARTIFACT $TEST_ROOT AS LOCAL ./Modules/$MODULE_NAME-TestResults
SAVE ARTIFACT $OUTPUT_ROOT/publish/*.nupkg AS LOCAL ./Modules/$MODULE_NAME-Packages/

0 comments on commit 7b49b26

Please sign in to comment.