From 7126559bb35e4abb0b57a75c8abda4d6f067c958 Mon Sep 17 00:00:00 2001 From: Keith Maxwell Date: Wed, 22 Nov 2023 05:09:09 +0000 Subject: [PATCH 1/4] Improve workflow name --- .github/workflows/deno.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deno.yaml b/.github/workflows/deno.yaml index 39d6eb8..62a5682 100644 --- a/.github/workflows/deno.yaml +++ b/.github/workflows/deno.yaml @@ -2,7 +2,7 @@ # Copyright 2023 Keith Maxwell # SPDX-License-Identifier: CC0-1.0 -name: Build +name: Build with deno compile; publish for a tag on: push # yamllint disable-line rule:truthy From ace49254f69a8a7d7ca3ba9c44ddc25f8ecdcf02 Mon Sep 17 00:00:00 2001 From: Keith Maxwell Date: Wed, 22 Nov 2023 05:16:52 +0000 Subject: [PATCH 2/4] Refactor so that adding a file is easier --- .github/workflows/deno.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deno.yaml b/.github/workflows/deno.yaml index 62a5682..c84b158 100644 --- a/.github/workflows/deno.yaml +++ b/.github/workflows/deno.yaml @@ -22,7 +22,13 @@ jobs: --allow-run --allow-net a4.js - - { uses: actions/upload-artifact@v3, with: { name: a4, path: a4 } } + - uses: actions/upload-artifact@v3 + with: + name: a4 + path: | + a4 - uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') - with: { files: a4 } + with: + files: | + a4 From 4189edd640041cbd4086a8478b4950bd3a3a5d3d Mon Sep 17 00:00:00 2001 From: Keith Maxwell Date: Wed, 22 Nov 2023 05:21:24 +0000 Subject: [PATCH 3/4] Generate and upload checksums --- .github/workflows/deno.yaml | 3 +++ .gitignore | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/deno.yaml b/.github/workflows/deno.yaml index c84b158..2408679 100644 --- a/.github/workflows/deno.yaml +++ b/.github/workflows/deno.yaml @@ -22,13 +22,16 @@ jobs: --allow-run --allow-net a4.js + - run: sha256sum a4 | tee SHA256SUMS - uses: actions/upload-artifact@v3 with: name: a4 path: | a4 + SHA256SUMS - uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: files: | a4 + SHA256SUMS diff --git a/.gitignore b/.gitignore index a183214..8bf8b4d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /.en.utf-8.add.spl +/SHA256SUMS /a4 /deno.lock /index.html From 30eb25792d6c260d0cf30f9faf724f9d0f458898 Mon Sep 17 00:00:00 2001 From: Keith Maxwell Date: Wed, 22 Nov 2023 05:22:24 +0000 Subject: [PATCH 4/4] Bump version number to 0.0.5 --- a4.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/a4.js b/a4.js index f641e61..6704e96 100755 --- a/a4.js +++ b/a4.js @@ -27,7 +27,7 @@ let input; let pdf; program - .version("0.0.4") // also update package.json + .version("0.0.5") // also update package.json .arguments(` [destination.pdf]`) .action((source, destination) => { input = source; diff --git a/package.json b/package.json index fec0214..ceecc71 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@maxwell-k/a4", - "version": "0.0.4", + "version": "0.0.5", "type": "module", "description": "Create a PDF with puppeteer", "main": "a4.js",