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 8bff2a0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,20 @@ 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:
name: Modules
path: Modules/Pansies

- uses: actions/upload-artifact@v3
with:
name: TestResults
path: Modules/Pansies-TestResults

- uses: actions/upload-artifact@v3
with:
name: Packages
path: Modules/Pansies-Packages
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 8bff2a0

Please sign in to comment.