Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Commit 8d416f4

Browse files
author
Alex
authored
chore: fix github actions for build and release (#2)
generate workflow with projen and disable github integration
1 parent 2a871db commit 8d416f4

File tree

14 files changed

+51
-47
lines changed

14 files changed

+51
-47
lines changed

.gitattributes

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/pull_request_template.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/build.yml renamed to .github/workflows/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
node-version: "14"
3030
- name: Install dependencies
3131
run: yarn install --check-files --frozen-lockfile
32+
- name: give user docker permission so we can run tests
33+
run: sudo chown $(whoami) /var/run/docker.sock
3234
- name: build
3335
run: npx projen build
3436
- name: Check for changes

.github/workflows/release.yml renamed to .github/workflows/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
node-version: "14"
3131
- name: Install dependencies
3232
run: yarn install --check-files --frozen-lockfile
33+
- name: give user docker permission so we can run tests
34+
run: sudo chown $(whoami) /var/run/docker.sock
3335
- name: release
3436
run: npx projen release
3537
- name: Check for new commits
@@ -88,3 +90,23 @@ jobs:
8890
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8991
container:
9092
image: jsii/superchain:1-buster-slim-node14
93+
release_pypi:
94+
name: Publish to PyPI
95+
needs: release
96+
runs-on: ubuntu-latest
97+
permissions:
98+
contents: read
99+
if: needs.release.outputs.latest_commit == github.sha
100+
steps:
101+
- name: Download build artifacts
102+
uses: actions/download-artifact@v2
103+
with:
104+
name: dist
105+
path: dist
106+
- name: Release
107+
run: npx -p jsii-release@latest jsii-release-pypi
108+
env:
109+
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
110+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
111+
container:
112+
image: jsii/superchain:1-buster-slim-node14
File renamed without changes.

.gitignore

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.jsii

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"author": {
33
"email": "amelnyk@amazon.de",
4-
"name": "Alexander Melnyk (am29d)",
4+
"name": "Alexander Melnyk",
55
"roles": [
66
"author"
77
]
@@ -2884,6 +2884,10 @@
28842884
"targets": {
28852885
"js": {
28862886
"npm": "cdk-lambda-powertools-python-layer"
2887+
},
2888+
"python": {
2889+
"distName": "cdk-lambda-powertools-python-layer",
2890+
"module": "cdk_lambda_powertools_python_layer"
28872891
}
28882892
},
28892893
"types": {
@@ -3024,5 +3028,5 @@
30243028
}
30253029
},
30263030
"version": "0.0.0",
3027-
"fingerprint": "bq4yg8UkSg65RJqVTCi4ThV6eBimI9wHvhURjX99NXY="
3031+
"fingerprint": "d0Vv2mqbhdMR/bcmrWttHIiURebjXsLVUdEv5TudkjE="
30283032
}

.mergify.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.npmignore

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projen/files.json

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
const { awscdk } = require('projen');
22
const project = new awscdk.AwsCdkConstructLibrary({
3-
author: 'Alexander Melnyk (am29d)',
3+
authorName: 'Alexander Melnyk',
44
authorAddress: 'amelnyk@amazon.de',
55
keywords: ['aws', 'cdk', 'powertools', 'python', 'layer', 'lambda', 'devax'],
66
cdkVersion: '2.2.0',
77
defaultReleaseBranch: 'main',
88
name: 'cdk-lambda-powertools-python-layer',
99
repositoryUrl: 'https://github.com/amelnyk/cdk-lambda-powertools-python-layer.git',
1010
description: 'A lambda layer for AWS Powertools for python',
11-
workflowNodeVersion: '14',
11+
github: false,
12+
publishToPypi: {
13+
distName: 'cdk-lambda-powertools-python-layer',
14+
module: 'cdk_lambda_powertools_python_layer',
15+
},
16+
catalog: {
17+
twitter: 'am29d',
18+
announce: false,
19+
},
1220
});
1321

1422

package.json

Lines changed: 11 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)