diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index c62eb41c..edefbbc6 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -9,7 +9,7 @@ jobs: container: image: rancher/dapper:v0.5.4 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v5 - name: Run CI run: dapper ci @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v5 - name: Build binaries env: @@ -25,7 +25,7 @@ jobs: run: make build - name: Checkout charts Repo - uses: actions/checkout@v3 + uses: actions/checkout@v5 with: repository: rancher/charts path: charts diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 60ad2b83..85004bbe 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -6,38 +6,16 @@ jobs: build-assets: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 - name: Build binaries env: CROSS: true run: make build - - name: Get release - id: get_release - uses: bruceadams/get-release@v1.2.2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.get_release.outputs.upload_url }} - asset_path: bin/charts-build-scripts - asset_name: charts-build-scripts - asset_content_type: application/octet-stream - - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.get_release.outputs.upload_url }} - asset_path: bin/charts-build-scripts-darwin - asset_name: charts-build-scripts-darwin - asset_content_type: application/octet-stream - - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload release assets + uses: softprops/action-gh-release@v3 with: - upload_url: ${{ steps.get_release.outputs.upload_url }} - asset_path: bin/charts-build-scripts-windows - asset_name: charts-build-scripts-windows - asset_content_type: application/octet-stream + files: | + bin/charts-build-scripts + bin/charts-build-scripts-darwin + bin/charts-build-scripts-windows