Skip to content

Commit cc474c4

Browse files
authored
Create publish.yml
1 parent e86c69b commit cc474c4

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
publish:
7+
permissions:
8+
id-token: write
9+
contents: read
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-python@v1
14+
with:
15+
python-version: '3.11'
16+
architecture: x64
17+
- run: pip install pip==22.1.2 wheel==0.37.1 build==0.8.0
18+
- run: python -m build --wheel
19+
- name: Configure AWS Credentials
20+
uses: aws-actions/configure-aws-credentials@v2
21+
with:
22+
role-to-assume: ${{ secrets.AWS_GITHUB_WORKFLOWS_ROLE_ARN }}
23+
aws-region: us-east-1
24+
- uses: Flared/[email protected]
25+
with:
26+
AWS_ACCESS_KEY_ID: ${{ env.AWS_ACCESS_KEY_ID }}
27+
AWS_SECRET_ACCESS_KEY: ${{ env.AWS_SECRET_ACCESS_KEY }}
28+
AWS_SESSION_TOKEN: ${{ env.AWS_SESSION_TOKEN }}
29+
FILES: dist/*

0 commit comments

Comments
 (0)