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

chore: fix github actions for build and release #2

Merged
merged 6 commits into from
Jan 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .github/pull_request_template.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
node-version: "14"
- name: Install dependencies
run: yarn install --check-files --frozen-lockfile
- name: give user docker permission so we can run tests
run: sudo chown $(whoami) /var/run/docker.sock
- name: build
run: npx projen build
- name: Check for changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
node-version: "14"
- name: Install dependencies
run: yarn install --check-files --frozen-lockfile
- name: give user docker permission so we can run tests
run: sudo chown $(whoami) /var/run/docker.sock
- name: release
run: npx projen release
- name: Check for new commits
Expand Down Expand Up @@ -88,3 +90,23 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
container:
image: jsii/superchain:1-buster-slim-node14
release_pypi:
name: Publish to PyPI
needs: release
runs-on: ubuntu-latest
permissions:
contents: read
if: needs.release.outputs.latest_commit == github.sha
steps:
- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: Release
run: npx -p jsii-release@latest jsii-release-pypi
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
container:
image: jsii/superchain:1-buster-slim-node14
7 changes: 0 additions & 7 deletions .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions .jsii
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": {
"email": "amelnyk@amazon.de",
"name": "Alexander Melnyk (am29d)",
"name": "Alexander Melnyk",
"roles": [
"author"
]
Expand Down Expand Up @@ -2884,6 +2884,10 @@
"targets": {
"js": {
"npm": "cdk-lambda-powertools-python-layer"
},
"python": {
"distName": "cdk-lambda-powertools-python-layer",
"module": "cdk_lambda_powertools_python_layer"
}
},
"types": {
Expand Down Expand Up @@ -3024,5 +3028,5 @@
}
},
"version": "0.0.0",
"fingerprint": "bq4yg8UkSg65RJqVTCi4ThV6eBimI9wHvhURjX99NXY="
"fingerprint": "d0Vv2mqbhdMR/bcmrWttHIiURebjXsLVUdEv5TudkjE="
}
18 changes: 0 additions & 18 deletions .mergify.yml

This file was deleted.

1 change: 0 additions & 1 deletion .npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions .projen/files.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions .projenrc.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
const { awscdk } = require('projen');
const project = new awscdk.AwsCdkConstructLibrary({
author: 'Alexander Melnyk (am29d)',
authorName: 'Alexander Melnyk',
authorAddress: 'amelnyk@amazon.de',
keywords: ['aws', 'cdk', 'powertools', 'python', 'layer', 'lambda', 'devax'],
cdkVersion: '2.2.0',
defaultReleaseBranch: 'main',
name: 'cdk-lambda-powertools-python-layer',
repositoryUrl: 'https://github.com/amelnyk/cdk-lambda-powertools-python-layer.git',
description: 'A lambda layer for AWS Powertools for python',
workflowNodeVersion: '14',
github: false,
publishToPypi: {
distName: 'cdk-lambda-powertools-python-layer',
module: 'cdk_lambda_powertools_python_layer',
},
catalog: {
twitter: 'am29d',
announce: false,
},
});


Expand Down
13 changes: 11 additions & 2 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.