diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a33c10e..b0eebbd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -196,31 +196,3 @@ jobs: run: cd .repo && npx projen package:dotnet - name: Collect dotnet Artifact run: mv .repo/dist dist - package-go: - needs: build - runs-on: ubuntu-latest - permissions: {} - if: "! needs.build.outputs.self_mutation_happened" - steps: - - uses: actions/setup-node@v3 - with: - node-version: 18.x - - uses: actions/setup-go@v3 - with: - go-version: ^1.16.0 - - name: Download build artifacts - uses: actions/download-artifact@v3 - with: - name: build-artifact - path: dist - - name: Restore build artifact permissions - run: cd dist && setfacl --restore=permissions-backup.acl - continue-on-error: true - - name: Prepare Repository - run: mv dist .repo - - name: Install Dependencies - run: cd .repo && yarn install --check-files --frozen-lockfile - - name: Create go artifact - run: cd .repo && npx projen package:go - - name: Collect go Artifact - run: mv .repo/dist dist diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c151823..86f00fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -225,39 +225,3 @@ jobs: env: NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} run: npx -p publib@latest publib-nuget - release_golang: - name: Publish to GitHub Go Module Repository - needs: release - runs-on: ubuntu-latest - permissions: - contents: read - if: needs.release.outputs.tag_exists != 'true' && needs.release.outputs.latest_commit == github.sha - steps: - - uses: actions/setup-node@v3 - with: - node-version: 18.x - - uses: actions/setup-go@v3 - with: - go-version: ^1.16.0 - - name: Download build artifacts - uses: actions/download-artifact@v3 - with: - name: build-artifact - path: dist - - name: Restore build artifact permissions - run: cd dist && setfacl --restore=permissions-backup.acl - continue-on-error: true - - name: Prepare Repository - run: mv dist .repo - - name: Install Dependencies - run: cd .repo && yarn install --check-files --frozen-lockfile - - name: Create go artifact - run: cd .repo && npx projen package:go - - name: Collect go Artifact - run: mv .repo/dist dist - - name: Release - env: - GIT_USER_NAME: github-actions - GIT_USER_EMAIL: github-actions@github.com - GITHUB_TOKEN: ${{ secrets.GO_GITHUB_TOKEN }} - run: npx -p publib@latest publib-golang diff --git a/.projen/tasks.json b/.projen/tasks.json index e0ab2da..ab65cfc 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -194,9 +194,6 @@ }, { "spawn": "package:dotnet" - }, - { - "spawn": "package:go" } ] }, @@ -209,15 +206,6 @@ } ] }, - "package:go": { - "name": "package:go", - "description": "Create go language bindings", - "steps": [ - { - "exec": "jsii-pacmak -v --target go" - } - ] - }, "package:java": { "name": "package:java", "description": "Create java language bindings", diff --git a/.projenrc.ts b/.projenrc.ts index bd38674..736f917 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -1,4 +1,5 @@ import { CdklabsConstructLibrary } from 'cdklabs-projen-project-types'; +import { JsiiLanguage } from 'cdklabs-projen-project-types'; const project = new CdklabsConstructLibrary({ author: 'Amazon Web Services', authorAddress: 'aws-avp-cdk-dev@amazon.com', @@ -12,6 +13,7 @@ const project = new CdklabsConstructLibrary({ prerelease: 'alpha', stability: 'experimental', releaseToNpm: true, + jsiiTargetLanguages: [JsiiLanguage.PYTHON, JsiiLanguage.JAVA, JsiiLanguage.DOTNET], repositoryUrl: 'https://github.com/cdklabs/cdk-verified-permissions.git', }); project.synth(); \ No newline at end of file diff --git a/package.json b/package.json index 6c1a89b..742ab26 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,6 @@ "package": "npx projen package", "package-all": "npx projen package-all", "package:dotnet": "npx projen package:dotnet", - "package:go": "npx projen package:go", "package:java": "npx projen package:java", "package:js": "npx projen package:js", "package:python": "npx projen package:python", @@ -148,9 +147,6 @@ "dotnet": { "namespace": "Cdklabs.CdkVerifiedPermissions", "packageId": "Cdklabs.CdkVerifiedPermissions" - }, - "go": { - "moduleName": "github.com/cdklabs/cdk-verified-permissions-go" } }, "tsc": {