Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Upgrade actions/upload-artifact to v4 #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release-graylog-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/release-with-jec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
integration_version: ${{ steps.gather_params.outputs.INTEGRATION_VERSION }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Retrieve Integration Version
id: gather_params
run: |
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
go-version: 1.15.7
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Create Output Directory
run: mkdir -p .release/jec-linux/${{ env.INTEGRATION_FOLDER }}
- name: Download Asset
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
cd .release/jec-linux/
zip -r jsm-${{ env.INTEGRATION_NAME }}-${{ env.INTEGRATION_VERSION }}-linux-amd64.zip ./${{ env.INTEGRATION_FOLDER }}
- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Linux Artifact
path: .release/jec-linux/*.zip
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
go-version: 1.15.7
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Create Output Directory
run: mkdir -p .release/jec-rpm
- name: Download Asset
Expand Down Expand Up @@ -206,12 +206,12 @@ jobs:
- name: Move RHEL6 Package
run: mv ~/rpmbuild/RPMS/x86_64/jsm-${{ env.INTEGRATION_NAME }}-rhel6-${{ env.INTEGRATION_VERSION }}-1.x86_64.rpm .release/jec-rpm/jsm-${{ env.INTEGRATION_NAME }}-${{ env.INTEGRATION_VERSION }}.rhel6.x86_64.rpm
- name: Upload RPM Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: RPM Artifact
path: .release/jec-rpm/jsm-${{ env.INTEGRATION_NAME }}-${{ env.INTEGRATION_VERSION }}.x86_64.rpm
- name: Upload RHEL6 Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: RHEL6 Artifact
path: .release/jec-rpm/jsm-${{ env.INTEGRATION_NAME }}-${{ env.INTEGRATION_VERSION }}.rhel6.x86_64.rpm
Expand Down Expand Up @@ -248,7 +248,7 @@ jobs:
go-version: 1.15.7
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Create Output Directory
run: mkdir -p .release/jec-deb/usr/local/bin
- name: Download Asset
Expand Down Expand Up @@ -295,7 +295,7 @@ jobs:
- name: Move Deb Package
run: mv .release/deb-package/*.deb .release/jec-deb/jsm-${{ env.INTEGRATION_NAME }}_${{ env.INTEGRATION_VERSION }}_amd64.deb
- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Debian Artifact
path: .release/jec-deb/jsm-${{ env.INTEGRATION_NAME }}_${{ env.INTEGRATION_VERSION }}_amd64.deb
Expand Down Expand Up @@ -324,7 +324,7 @@ jobs:
go-version: 1.15.7
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Create Output Directory
run: mkdir -p .release/jec-win32/${{ env.INTEGRATION_FOLDER }}
- name: Download Asset
Expand Down Expand Up @@ -361,7 +361,7 @@ jobs:
cd .release/jec-win32/
zip -r ${{ env.INTEGRATION_FOLDER }}.zip ./${{ env.INTEGRATION_FOLDER }}
- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Win32 Artifact
path: .release/jec-win32/*.zip
Expand Down Expand Up @@ -390,7 +390,7 @@ jobs:
go-version: 1.15.7
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Create Output Directory
run: mkdir -p .release/jec-win64/${{ env.INTEGRATION_FOLDER }}
- name: Download Asset
Expand Down Expand Up @@ -427,7 +427,7 @@ jobs:
cd .release/jec-win64/
zip -r ${{ env.INTEGRATION_FOLDER }}.zip ./${{ env.INTEGRATION_FOLDER }}
- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Win64 Artifact
path: .release/jec-win64/*.zip
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release-without-jec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
integration_version: ${{ steps.gather_params.outputs.INTEGRATION_VERSION }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Retrieve Integration Version
id: gather_params
run: |
Expand All @@ -64,7 +64,7 @@ jobs:
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout project sources
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
cd ./go-build/${{ env.INTEGRATION_NAME }}/scripts && \
GOOS=windows GOARCH=386 go build -o send2jsm.exe send2jsm.go
- name: Upload Go Build Files
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Build Go Artifact
path: ./go-build/${{ env.INTEGRATION_NAME }}/*
Expand All @@ -106,13 +106,13 @@ jobs:
run:
./gradlew ${{ env.INTEGRATION_NAME }}
- name: Upload Build Files
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Build Files Artifact
path: build/*
- name: Upload Red Hat 6 Based Artifact
if: ${{env.INTEGRATION_NAME != 'vcenter'}}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: RHEL6 Artifact
path: build/distributions/jsm-${{ env.INTEGRATION_NAME }}-${{ env.INTEGRATION_VERSION }}-1.all.noarch.rpm
Expand All @@ -128,7 +128,7 @@ jobs:
asset_content_type: application/octet-stream
- name: Upload Debian Based Artifact
if: ${{env.INTEGRATION_NAME != 'vcsa' && env.INTEGRATION_NAME != 'vcenter'}}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Debian Artifact
path: build/distributions/jsm-${{ env.INTEGRATION_NAME }}_${{ env.INTEGRATION_VERSION }}_all.deb
Expand All @@ -144,7 +144,7 @@ jobs:
asset_content_type: application/octet-stream
- name: Upload Win64 Based Artifact
if: ${{env.INTEGRATION_NAME == 'vcenter'}}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Win64 Artifact
path: build/distributions/jsm-${{ env.INTEGRATION_NAME }}-${{ env.INTEGRATION_VERSION }}.zip
Expand Down