diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3be2d4f..e07d8b3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,20 +52,14 @@ jobs: with: args: -p 3 release --clean version: latest - - name: Publish provider packages - uses: osiegmar/s3-publisher-action@v1 + - id: Publish provider packages + uses: imehedi/actions-awscli-v2@latest + with: + args: s3 cp --endpoint-url="${{ secrets.AWS_ENDPOINT_URL }}" dist/ "s3://${{ secrets.AWS_S3_BUCKET }}/pulumi-k0s/" --recursive --include "pulumi-resource-*.tar.gz" env: - AWS_ENDPOINT_URL: "${{ secrets.AWS_ENDPOINT_URL }}" - AWS_REGION: "${{ secrets.AWS_REGION }}" AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}" AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" - with: - bucket: "${{ secrets.AWS_S3_BUCKET }}" - prefix: pulumi-k0s/ - dir: dist - includes: | - pulumi-resource-*.tar.gz - delete-orphaned: false + AWS_REGION: "${{ secrets.AWS_REGION }}" strategy: fail-fast: true matrix: @@ -121,7 +115,7 @@ jobs: - name: Compress SDK folder run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} . - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.language }}-sdk.tar.gz path: ${{ github.workspace}}/sdk/${{ matrix.language }}.tar.gz diff --git a/provider/cluster.go b/provider/cluster.go index c645483..f85c428 100644 --- a/provider/cluster.go +++ b/provider/cluster.go @@ -438,6 +438,8 @@ func (c Cluster) Create( return name, olds, err } + olds.ClusterInputs = news + if news.Kubeconfig != nil { olds.Kubeconfig = news.Kubeconfig }