Add OpenSSF Scorecard GitHub Action (#1118) #375
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Publish nightly wheel | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: [devel] | |
jobs: | |
sdist: | |
runs-on: ubuntu-latest | |
name: Build wheel | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install build dependencies | |
run: | | |
pip install build | |
- name: Build wheel | |
run: | | |
make clean receptorctl_wheel | |
- name: Upload wheel | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
run: | | |
pip install boto3 | |
ansible -i localhost, -c local all -m aws_s3 \ | |
-a "bucket=receptor-nightlies object=receptorctl/receptorctl-0.0.0-py3-none-any.whl src=$(ls receptorctl/dist/*.whl | head -n 1) mode=put" |