File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 exit 1
2929 fi
3030
31+ - name : Import GPG key
32+ uses : crazy-max/ghaction-import-gpg@v6
33+ with :
34+ gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
35+ passphrase : ${{ secrets.GPG_PASSPHRASE }}
36+
37+ - name : Sign tron-docker.zip with GPG
38+ run : |
39+ gpg --detach-sign --armor tron-docker.zip
40+ # This creates tron-docker.zip.asc (ASCII-armored signature)
41+
42+ - name : Export GPG public key to tron-docker-099228E1.pub
43+ run : |
44+ gpg --armor --export > tron-docker-099228E1.pub
45+ # Optional: Set restrictive permissions
46+ chmod 600 tron-docker-099228E1.pub
47+
3148 - name : Configure AWS Credentials
3249 uses : aws-actions/configure-aws-credentials@v4
3350 with :
3956 run : |
4057 aws s3 cp tron-docker.zip s3://${{ github.event.inputs.bucket-name }}/package/publish-latest.zip
4158 aws s3 cp tron-docker.zip s3://${{ github.event.inputs.bucket-name }}/package/publish-v0.1.1.zip
59+
60+ zip -r public.zip tron-docker.zip tron-docker.zip.asc
61+ aws s3 cp tron-docker-099228E1.pub s3://${{ github.event.inputs.bucket-name }}/public-keys/tron-docker-099228E1.pub
62+ aws s3 cp tron-docker-099228E1.pub s3://${{ github.event.inputs.bucket-name }}/signatures/tron-docker.zip.asc
63+ aws s3 cp tron-docker.zip s3://${{ github.event.inputs.bucket-name }}/tron-docker.zip
You can’t perform that action at this time.
0 commit comments