Skip to content

Commit bcf4cea

Browse files
committed
add publishing
1 parent a7b47cd commit bcf4cea

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,18 @@ jobs:
1616
uses: actions/checkout@v3
1717
with:
1818
submodules: recursive
19+
- name: Install AWS CLI
20+
run: pip install --user awscli
1921
- name: Build
2022
run: make
23+
- name: Publish
24+
if: startsWith(github.ref, 'refs/tags/')
25+
env:
26+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
27+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
28+
AWS_DEFAULT_REGION: us-east-1
29+
BUCKET: akerl-githubauthlambda
30+
run: aws s3 cp pkg/payload.zip "s3://$BUCKET/$GITHUB_REF_NAME.zip"
2131
- name: Release
2232
if: startsWith(github.ref, 'refs/tags/')
2333
run: make release

0 commit comments

Comments
 (0)