Skip to content

update brancehs

update brancehs #38

Workflow file for this run

name: Build PyPi Wheel

Check failure on line 1 in .github/workflows/build-nmstore.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-nmstore.yml

Invalid workflow file

`pull_requests` is not a valid event name
on:
pull_requests:
branches:
- main
push:
branches:
- main
- 'release/[0-9]+.[0-9]+'
schedule:
- cron: '0 0 * * *'
env:
INTERNAL: ${{ github.event_name != 'schedule' }}
RELEASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/release/[0-9]+.[0-9]+' }}
DEV: ${{ github.event_name == 'pull_request' && github.event.action == 'opened' }}
jobs:
build_and_push:
runs-on: ubuntu-latest
outputs:
filename: ${{ steps.build_wheel.outputs.filename }}
permissions:
id-token: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to s3
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.AWS_WEBIDENTITY_FOR_GITHUB_ACTIONS }}
aws-region: us-east-1
- name: Build PyPi Wheel
id: build_wheel
uses: neuralmagic/nmstore/actions/pypi@pypi-test
with:
dev: $DEV
release: $RELEASE
runs-on: ubuntu-latest
- name: Push to s3 bucket
uses: neuralmagic/nmstore/actions/s3@pypi-test
with:
filename: dist/*.whl
internal: $INTERNAL