diff --git a/.github/actions/publish-artifact/action.yml b/.github/actions/publish-artifact/action.yml new file mode 100644 index 000000000..c2699e52c --- /dev/null +++ b/.github/actions/publish-artifact/action.yml @@ -0,0 +1,17 @@ +# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action + +name: Publish Artifact +description: Publishes a build artifact + +inputs: + runtime: + description: '.net runtime' + required: true + +runs: + using: 'composite' + steps: + - uses: actions/upload-artifact@v4 + with: + name: ${{ inputs.runtime }} + path: _artifacts/net6.0/${{ inputs.runtime }}/publish/**/* diff --git a/.github/actions/publish-test-artifact/action.yml b/.github/actions/publish-test-artifact/action.yml index c73d54bab..315ed9959 100644 --- a/.github/actions/publish-test-artifact/action.yml +++ b/.github/actions/publish-test-artifact/action.yml @@ -1,7 +1,7 @@ # https://docs.github.com/en/actions/creating-actions/creating-a-composite-action -name: Set up environment -description: Runs setup actions and installs packages +name: Publish Test Artifact +description: Publishes a test artifact inputs: runtime: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 727027ee0..6fc9af9f6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,84 +45,84 @@ jobs: # Test Artifacts - name: Publish win-x64 Test Artifact - uses: actions/publish-test-artifact@v1 + uses: ./.github/actions/publish-test-artifact with: runtime: win-x64 - name: Publish win-x86 Test Artifact - uses: actions/publish-test-artifact@v1 + uses: ./.github/actions/publish-test-artifact with: runtime: win-x86 - name: Publish linux-x64 Test Artifact - uses: actions/publish-test-artifact@v1 + uses: ./.github/actions/publish-test-artifact with: runtime: linux-x64 - name: Publish linux-musl-x64 Test Artifact - uses: actions/publish-test-artifact@v1 + uses: ./.github/actions/publish-test-artifact with: runtime: linux-musl-x64 - name: Publish osx-x64 Test Artifact - uses: actions/publish-test-artifact@v1 + uses: ./.github/actions/publish-test-artifact with: runtime: osx-x64 - name: Publish freebsd-x64 Test Artifact - uses: actions/publish-test-artifact@v1 + uses: ./.github/actions/publish-test-artifact with: runtime: freebsd-x64 # Artifacts - name: Publish win-x64 Artifact - uses: actions/publish-test-artifact@v1 + uses: ./.github/actions/publish-artifact with: runtime: win-x64 - name: Publish win-x86 Artifact - uses: actions/publish-test-artifact@v1 + uses: ./.github/actions/publish-artifact with: runtime: win-x86 - name: Publish linux-x64 Artifact - uses: actions/publish-test-artifact@v1 + uses: ./.github/actions/publish-artifact with: runtime: linux-x64 - name: Publish linux-musl-x64 Artifact - uses: actions/publish-test-artifact@v1 + uses: ./.github/actions/publish-artifact with: runtime: linux-musl-x64 - name: Publish linux-arm64 Artifact - uses: actions/publish-test-artifact@v1 + uses: ./.github/actions/publish-artifact with: runtime: linux-arm64 - name: Publish linux-musl-arm64 Artifact - uses: actions/publish-test-artifact@v1 + uses: ./.github/actions/publish-artifact with: runtime: linux-musl-arm64 - name: Publish linux-arm Artifact - uses: actions/publish-test-artifact@v1 + uses: ./.github/actions/publish-artifact with: runtime: linux-arm - name: Publish osx-x64 Artifact - uses: actions/publish-test-artifact@v1 + uses: ./.github/actions/publish-artifact with: runtime: osx-x64 - name: Publish osx-arm64 Artifact - uses: actions/publish-test-artifact@v1 + uses: ./.github/actions/publish-artifact with: runtime: osx-arm64 - name: Publish freebsd-x64 Artifact - uses: actions/publish-test-artifact@v1 + uses: ./.github/actions/publish-artifact with: runtime: freebsd-x64