From c3d159af677fd82e2b3df4f3743c717e8260c3a5 Mon Sep 17 00:00:00 2001 From: Carlos Lapao Date: Mon, 3 Feb 2025 12:42:42 +0000 Subject: [PATCH] fix depricated upload --- .../action.yml | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/actions/build-and-persist-plugin-binary/action.yml b/.github/actions/build-and-persist-plugin-binary/action.yml index 5a2b94d..07e082d 100644 --- a/.github/actions/build-and-persist-plugin-binary/action.yml +++ b/.github/actions/build-and-persist-plugin-binary/action.yml @@ -10,15 +10,15 @@ inputs: runs: using: composite steps: - - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - - run: "GOOS=${{ inputs.GOOS }} GOARCH=${{ inputs.GOARCH }} go build -o ./pkg/packer_plugin_parallels_${{ inputs.GOOS }}_${{ inputs.GOARCH }} ." - shell: bash - - run: zip ./pkg/packer_plugin_parallels_${{ inputs.GOOS }}_${{ inputs.GOARCH }}.zip ./pkg/packer_plugin_parallels_${{ inputs.GOOS }}_${{ inputs.GOARCH }} - shell: bash - - run: rm ./pkg/packer_plugin_parallels_${{ inputs.GOOS }}_${{ inputs.GOARCH }} - shell: bash - - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 - with: - name: "packer_plugin_parallels_${{ inputs.GOOS }}_${{ inputs.GOARCH }}.zip" - path: "pkg/packer_plugin_parallels_${{ inputs.GOOS }}_${{ inputs.GOARCH }}.zip" - retention-days: 30 + - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 + - run: "GOOS=${{ inputs.GOOS }} GOARCH=${{ inputs.GOARCH }} go build -o ./pkg/packer_plugin_parallels_${{ inputs.GOOS }}_${{ inputs.GOARCH }} ." + shell: bash + - run: zip ./pkg/packer_plugin_parallels_${{ inputs.GOOS }}_${{ inputs.GOARCH }}.zip ./pkg/packer_plugin_parallels_${{ inputs.GOOS }}_${{ inputs.GOARCH }} + shell: bash + - run: rm ./pkg/packer_plugin_parallels_${{ inputs.GOOS }}_${{ inputs.GOARCH }} + shell: bash + - uses: actions/upload-artifact@v4 + with: + name: "packer_plugin_parallels_${{ inputs.GOOS }}_${{ inputs.GOARCH }}.zip" + path: "pkg/packer_plugin_parallels_${{ inputs.GOOS }}_${{ inputs.GOARCH }}.zip" + retention-days: 30