mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 18:05:07 +03:00
fix publish new packages
This commit is contained in:
parent
7344ac5a51
commit
bde8d279b0
1 changed files with 9 additions and 8 deletions
17
.github/workflows/pkg-platform.yml
vendored
17
.github/workflows/pkg-platform.yml
vendored
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue