Skip to content

Commit

Permalink
Merge pull request #12 from digorgonzola/upload_to_s3
Browse files Browse the repository at this point in the history
test uploading artifact to S3 bucket
  • Loading branch information
digorgonzola authored Aug 24, 2022
2 parents 92ec36f + bd983a2 commit 8a46481
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
name: Release
name: Build Release

on:
release:
types:
- created

jobs:
release:
build-and-publish:
name: create release with artifacts
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
Expand All @@ -22,9 +19,16 @@ jobs:
run: python -m pip install build --user
- name: Build wheels
run: python -m build --outdir wheels

- name: Update Release
uses: mikepenz/[email protected]
- name: Attach wheel to release
uses: softprops/action-gh-release@v1
with:
files: wheels/*.whl
body: ${{ steps.build_changelog.outputs.changelog }}
- name: Upload to S3 bucket
uses: hkusu/s3-upload-action@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-southeast-2
aws-bucket: ${{ secrets.AWS_ARTIFACT_BUCKET }}
file-path: wheels/*.whl
destination-dir: /releases/python-aodncore

0 comments on commit 8a46481

Please sign in to comment.