Skip to content

Commit

Permalink
[ci] fix publish of provider packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ydkn committed Nov 17, 2024
1 parent 5080912 commit b70c673
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,18 @@ jobs:
args: -p 3 release --clean
version: latest
- name: Publish provider packages
uses: osiegmar/s3-publisher-action@v1
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:
goversion:
- 1.21.x
- 1.23.x
publish_sdk:
name: Publish SDKs
runs-on: ubuntu-latest
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions provider/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,8 @@ func (c Cluster) Create(
return name, olds, err
}

olds.ClusterInputs = news

if news.Kubeconfig != nil {
olds.Kubeconfig = news.Kubeconfig
}
Expand Down

0 comments on commit b70c673

Please sign in to comment.