From 2c64672d0f20d3b4bae85dff5cfd976eb03b5b0f Mon Sep 17 00:00:00 2001 From: Konstantin Alekseev Date: Sun, 3 May 2020 03:03:34 +0300 Subject: [PATCH] Debug action --- .github/workflows/ci.yml | 12 ++++++++++++ Makefile | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 24b35d2..21c4889 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,7 @@ jobs: name: weasyprint_output path: weasyprint_output - name: Create WeasyPrint Release + id: create_release if: startsWith(github.ref, 'refs/tags/weasyprint-') uses: actions/create-release@latest env: @@ -29,3 +30,14 @@ jobs: with: tag_name: ${{ github.ref }} release_name: Release WeasyPrint layer + - name: Upload WeasyPrint Layer + id: upload_release_asset + if: startsWith(github.ref, 'refs/tags/weasyprint-') + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./build/weasyprint-layer-python3.8.zip + asset_name: weasyprint-layer-python3.8.zip + asset_content_type: application/zip diff --git a/Makefile b/Makefile index cae8c22..e0d158f 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ stack.deploy.weasyprint: cdk deploy --app ./cdk-stacks/bin/app.js --stack WeasyPrintStack --parameters uploadBucketName=${BUCKET} test.weasyprint: - docker run --rm -it \ + docker run --rm \ -e GDK_PIXBUF_MODULE_FILE="/opt/lib/loaders.cache" \ -e FONTCONFIG_PATH="/opt/fonts" \ -e XDG_DATA_DIRS="/opt/lib" \