mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-19 17:59:05 -05:00
update upload and download artifacts gha (#2471)
Signed-off-by: ollevche <ollevche@gmail.com>
This commit is contained in:
committed by
GitHub
parent
22a42d87ab
commit
210c0f68b0
6
.github/workflows/build-opentofu-oss.yml
vendored
6
.github/workflows/build-opentofu-oss.yml
vendored
@@ -68,7 +68,7 @@ jobs:
|
|||||||
set -x
|
set -x
|
||||||
go build -ldflags "${{ inputs.ld-flags }}" -o dist/ ./cmd/tofu
|
go build -ldflags "${{ inputs.ld-flags }}" -o dist/ ./cmd/tofu
|
||||||
zip -r -j out/${{ env.ARTIFACT_BASENAME }} dist/
|
zip -r -j out/${{ env.ARTIFACT_BASENAME }} dist/
|
||||||
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
|
||||||
with:
|
with:
|
||||||
name: ${{ env.ARTIFACT_BASENAME }}
|
name: ${{ env.ARTIFACT_BASENAME }}
|
||||||
path: out/${{ env.ARTIFACT_BASENAME }}
|
path: out/${{ env.ARTIFACT_BASENAME }}
|
||||||
@@ -92,13 +92,13 @@ jobs:
|
|||||||
echo "RPM_PACKAGE=$(basename out/*.rpm)" >> $GITHUB_ENV
|
echo "RPM_PACKAGE=$(basename out/*.rpm)" >> $GITHUB_ENV
|
||||||
echo "DEB_PACKAGE=$(basename out/*.deb)" >> $GITHUB_ENV
|
echo "DEB_PACKAGE=$(basename out/*.deb)" >> $GITHUB_ENV
|
||||||
- if: ${{ inputs.goos == 'linux' }}
|
- if: ${{ inputs.goos == 'linux' }}
|
||||||
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
|
||||||
with:
|
with:
|
||||||
name: ${{ env.RPM_PACKAGE }}
|
name: ${{ env.RPM_PACKAGE }}
|
||||||
path: out/${{ env.RPM_PACKAGE }}
|
path: out/${{ env.RPM_PACKAGE }}
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
- if: ${{ inputs.goos == 'linux' }}
|
- if: ${{ inputs.goos == 'linux' }}
|
||||||
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
|
||||||
with:
|
with:
|
||||||
name: ${{ env.DEB_PACKAGE }}
|
name: ${{ env.DEB_PACKAGE }}
|
||||||
path: out/${{ env.DEB_PACKAGE }}
|
path: out/${{ env.DEB_PACKAGE }}
|
||||||
|
|||||||
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@@ -83,7 +83,7 @@ jobs:
|
|||||||
version: ${{ needs.get-product-version.outputs.product-version }}
|
version: ${{ needs.get-product-version.outputs.product-version }}
|
||||||
product: ${{ env.PKG_NAME }}
|
product: ${{ env.PKG_NAME }}
|
||||||
|
|
||||||
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
|
||||||
with:
|
with:
|
||||||
name: metadata.json
|
name: metadata.json
|
||||||
path: ${{ steps.generate-metadata-file.outputs.filepath }}
|
path: ${{ steps.generate-metadata-file.outputs.filepath }}
|
||||||
@@ -253,7 +253,7 @@ jobs:
|
|||||||
fail-on-cache-miss: true
|
fail-on-cache-miss: true
|
||||||
enableCrossOsArchive: true
|
enableCrossOsArchive: true
|
||||||
- name: "Download OpenTofu CLI package"
|
- name: "Download OpenTofu CLI package"
|
||||||
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
|
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
||||||
id: clipkg
|
id: clipkg
|
||||||
with:
|
with:
|
||||||
name: tofu_${{env.version}}_${{ env.os }}_${{ env.arch }}.zip
|
name: tofu_${{env.version}}_${{ env.os }}_${{ env.arch }}.zip
|
||||||
@@ -302,7 +302,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: ${{ needs.get-go-version.outputs.go-version }}
|
go-version: ${{ needs.get-go-version.outputs.go-version }}
|
||||||
- name: Download OpenTofu CLI package
|
- name: Download OpenTofu CLI package
|
||||||
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
|
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
||||||
id: clipkg
|
id: clipkg
|
||||||
with:
|
with:
|
||||||
name: tofu_${{ env.version }}_linux_amd64.zip
|
name: tofu_${{ env.version }}_linux_amd64.zip
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -133,7 +133,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
|
||||||
with:
|
with:
|
||||||
name: dist
|
name: dist
|
||||||
path: dist
|
path: dist
|
||||||
|
|||||||
Reference in New Issue
Block a user