Skip to content

Commit

Permalink
fix: build python package in release workflow, upgrade provider (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
kangasta authored Oct 15, 2024
1 parent d9c895d commit c4cd761
Show file tree
Hide file tree
Showing 222 changed files with 6,992 additions and 1,916 deletions.
55 changes: 18 additions & 37 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
name: release
name: Release
on:
push:
tags:
- v*.*.*
env:
# THIS GITHUB_TOKEN IS A REQUIREMENT TO BE ABLE TO WRITE TO GH RELEASES
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# IF YOU NEED TO PUBLISH A NPM PACKAGE THEN ENSURE A NPM_TOKEN SECRET IS SET
# AND PUBLISH_NPM: TRUE. IF YOU WANT TO PUBLISH TO A PRIVATE NPM REGISTRY
# THEN ENSURE THE NPM_REGISTRY_URL IS CHANGED
PUBLISH_NPM: false
# IF YOU NEED TO PUBLISH A NUGET PACKAGE THEN ENSURE AN NUGET_PUBLISH_KEY
# SECRET IS SET AND PUBLISH_NUGET: TRUE. IF YOU WANT TO PUBLISH TO AN ALTERNATIVE
# NPM REGISTRY THEN ENSURE THE NPM_REGISTRY_URL IS CHANGED
PUBLISH_NUGET: false
# IF YOU NEED TO PUBLISH A PYPI PACKAGE SET PUBLISH_PYPI: TRUE AND CHANGE PYPI_PASSWORD, PYPI_USERNAME TO YOUR CREDENTIALS.
# IF YOU WANT TO PUBLISH TO AN ALTERNATIVE PYPI REGISTRY THEN ENSURE THE PYPI_REPOSITORY_URL IS SET.
PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }}
PUBLISH_PYPI: true
jobs:
publish_binary:
name: publish
name: GitHub
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
Expand All @@ -42,31 +27,27 @@ jobs:
with:
args: -p 3 release --clean
version: latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
fail-fast: true
matrix:
goversion:
- 1.22.x
publish_sdk:
name: Publish SDKs
publish_pypi:
name: PyPI
runs-on: ubuntu-latest
needs: publish_binary
steps:
- name: Publish SDKs
uses: pulumi/[email protected]
strategy:
fail-fast: true
matrix:
dotnetversion:
- 3.1.301
goversion:
- 1.22.x
language:
- nodejs
- python
- dotnet
- go
nodeversion:
- 14.x
pythonversion:
- "3.11"
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install dependencies
run: pip install build
- name: Build Python packages
run: python -m build --sdist --wheel --outdir dist/ sdk/python/
- name: Publish package
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
29 changes: 15 additions & 14 deletions provider/cmd/pulumi-resource-upcloud/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,7 @@
"maxItemsOne": false
},
"properties": {
"maxItemsOne": true,
"elem": {
"fields": {
"tls_configs": {
"maxItemsOne": false
}
}
}
"maxItemsOne": true
},
"tls_configs": {
"maxItemsOne": false
Expand Down Expand Up @@ -501,6 +494,9 @@
}
}
},
"upcloud_managed_object_storage_custom_domain": {
"current": "upcloud:index/managedObjectStorageCustomDomain:ManagedObjectStorageCustomDomain"
},
"upcloud_managed_object_storage_policy": {
"current": "upcloud:index/managedObjectStoragePolicy:ManagedObjectStoragePolicy"
},
Expand Down Expand Up @@ -662,6 +658,9 @@
"upcloud_kubernetes_cluster": {
"current": "upcloud:index/getKubernetesCluster:getKubernetesCluster"
},
"upcloud_load_balancer_dns_challenge_domain": {
"current": "upcloud:index/getLoadBalancerDnsChallengeDomain:getLoadBalancerDnsChallengeDomain"
},
"upcloud_managed_database_mysql_sessions": {
"current": "upcloud:index/getManagedDatabaseMysqlSessions:getManagedDatabaseMysqlSessions",
"fields": {
Expand Down Expand Up @@ -803,23 +802,24 @@
"upcloud:index/kubernetesCluster:KubernetesCluster": 1,
"upcloud:index/kubernetesNodeGroup:KubernetesNodeGroup": 1,
"upcloud:index/loadbalancer:Loadbalancer": 0,
"upcloud:index/loadbalancerBackend:LoadbalancerBackend": 0,
"upcloud:index/loadbalancerBackend:LoadbalancerBackend": 1,
"upcloud:index/loadbalancerBackendTlsConfig:LoadbalancerBackendTlsConfig": 1,
"upcloud:index/loadbalancerDynamicBackendMember:LoadbalancerDynamicBackendMember": 0,
"upcloud:index/loadbalancerDynamicBackendMember:LoadbalancerDynamicBackendMember": 1,
"upcloud:index/loadbalancerDynamicCertificateBundle:LoadbalancerDynamicCertificateBundle": 1,
"upcloud:index/loadbalancerFrontend:LoadbalancerFrontend": 1,
"upcloud:index/loadbalancerFrontendRule:LoadbalancerFrontendRule": 0,
"upcloud:index/loadbalancerFrontendRule:LoadbalancerFrontendRule": 1,
"upcloud:index/loadbalancerFrontendTlsConfig:LoadbalancerFrontendTlsConfig": 1,
"upcloud:index/loadbalancerManualCertificateBundle:LoadbalancerManualCertificateBundle": 1,
"upcloud:index/loadbalancerResolver:LoadbalancerResolver": 0,
"upcloud:index/loadbalancerStaticBackendMember:LoadbalancerStaticBackendMember": 0,
"upcloud:index/loadbalancerResolver:LoadbalancerResolver": 1,
"upcloud:index/loadbalancerStaticBackendMember:LoadbalancerStaticBackendMember": 1,
"upcloud:index/managedDatabaseLogicalDatabase:ManagedDatabaseLogicalDatabase": 0,
"upcloud:index/managedDatabaseMysql:ManagedDatabaseMysql": 0,
"upcloud:index/managedDatabaseOpensearch:ManagedDatabaseOpensearch": 0,
"upcloud:index/managedDatabasePostgresql:ManagedDatabasePostgresql": 0,
"upcloud:index/managedDatabaseRedis:ManagedDatabaseRedis": 0,
"upcloud:index/managedDatabaseUser:ManagedDatabaseUser": 0,
"upcloud:index/managedObjectStorage:ManagedObjectStorage": 0,
"upcloud:index/managedObjectStorageCustomDomain:ManagedObjectStorageCustomDomain": 1,
"upcloud:index/managedObjectStoragePolicy:ManagedObjectStoragePolicy": 1,
"upcloud:index/managedObjectStorageUser:ManagedObjectStorageUser": 0,
"upcloud:index/managedObjectStorageUserAccessKey:ManagedObjectStorageUserAccessKey": 0,
Expand All @@ -839,14 +839,15 @@
"upcloud:index/getHosts:getHosts": 1,
"upcloud:index/getIpAddresses:getIpAddresses": 0,
"upcloud:index/getKubernetesCluster:getKubernetesCluster": 1,
"upcloud:index/getLoadBalancerDnsChallengeDomain:getLoadBalancerDnsChallengeDomain": 1,
"upcloud:index/getManagedDatabaseMysqlSessions:getManagedDatabaseMysqlSessions": 0,
"upcloud:index/getManagedDatabaseOpensearchIndices:getManagedDatabaseOpensearchIndices": 0,
"upcloud:index/getManagedDatabasePostgresqlSessions:getManagedDatabasePostgresqlSessions": 0,
"upcloud:index/getManagedDatabaseRedisSessions:getManagedDatabaseRedisSessions": 0,
"upcloud:index/getManagedObjectStoragePolicies:getManagedObjectStoragePolicies": 0,
"upcloud:index/getManagedObjectStorageRegions:getManagedObjectStorageRegions": 1,
"upcloud:index/getNetworks:getNetworks": 0,
"upcloud:index/getStorage:getStorage": 0,
"upcloud:index/getStorage:getStorage": 1,
"upcloud:index/getTags:getTags": 0,
"upcloud:index/getZone:getZone": 1,
"upcloud:index/getZones:getZones": 1
Expand Down
Loading

0 comments on commit c4cd761

Please sign in to comment.