fix publish new packages

This commit is contained in:
Jacob Heider 2023-12-15 02:40:34 -05:00
parent 7344ac5a51
commit bde8d279b0
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6

View file

@ -123,8 +123,7 @@ jobs:
aws-region: us-east-1 aws-region: us-east-1
- name: import GPG key - name: import GPG key
run: run: echo $GPG_PRIVATE_KEY |
echo $GPG_PRIVATE_KEY |
base64 -d | base64 -d |
pkgx gpg --import --batch --yes pkgx gpg --import --batch --yes
env: env:
@ -184,9 +183,11 @@ jobs:
- name: generate versions.txt - name: generate versions.txt
run: | 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 \ 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 echo "$SCRIPT" > script.ts
pkgx deno run -A script.ts ./remote-versions.txt ${{ needs.build.outputs.version }} > versions.txt pkgx deno run -A script.ts ./remote-versions.txt ${{ needs.build.outputs.version }} > versions.txt
env: env:
@ -203,10 +204,10 @@ jobs:
- name: invalidate cloudfront - name: invalidate cloudfront
run: aws cloudfront create-invalidation run: aws cloudfront create-invalidation
--distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID }} --distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID }}
--paths --paths
/$DIRNAME/versions.txt /$DIRNAME/versions.txt
${{ needs.bottle.outputs.paths }} ${{ needs.bottle.outputs.paths }}
if: ${{ ! inputs.dry-run }} if: ${{ ! inputs.dry-run }}
complain: complain: