diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 07375e1..9185554 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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: Pansies 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 diff --git a/Earthfile b/Earthfile index 6641607..ded2661 100644 --- a/Earthfile +++ b/Earthfile @@ -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/