From bde8d279b0749bce2baca2f253d096b34b494b75 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Fri, 15 Dec 2023 02:40:34 -0500 Subject: [PATCH] fix publish new packages --- .github/workflows/pkg-platform.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pkg-platform.yml b/.github/workflows/pkg-platform.yml index 82cc2e47..0b84e921 100644 --- a/.github/workflows/pkg-platform.yml +++ b/.github/workflows/pkg-platform.yml @@ -123,8 +123,7 @@ jobs: aws-region: us-east-1 - name: import GPG key - run: - echo $GPG_PRIVATE_KEY | + run: echo $GPG_PRIVATE_KEY | base64 -d | pkgx gpg --import --batch --yes env: @@ -184,9 +183,11 @@ jobs: - name: generate versions.txt run: | - aws s3 cp \ + if !aws s3 cp \ s3://${{ secrets.AWS_S3_BUCKET }}/${{ needs.build.outputs.project }}/${{ needs.build.outputs.platform }}/${{ needs.build.outputs.arch }}/versions.txt \ - ./remote-versions.txt + ./remote-versions.txt; then + touch remote-versions.txt + fi echo "$SCRIPT" > script.ts pkgx deno run -A script.ts ./remote-versions.txt ${{ needs.build.outputs.version }} > versions.txt env: @@ -203,10 +204,10 @@ jobs: - name: invalidate cloudfront run: aws cloudfront create-invalidation - --distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID }} - --paths - /$DIRNAME/versions.txt - ${{ needs.bottle.outputs.paths }} + --distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID }} + --paths + /$DIRNAME/versions.txt + ${{ needs.bottle.outputs.paths }} if: ${{ ! inputs.dry-run }} complain: