Skip to content

Fix workflow.yaml

Fix workflow.yaml #14

Workflow file for this run

name: faces-PyJs
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
# check out the repository
- name: Checkout repository
uses: actions/checkout@v4
# set up Python environment
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11.x'
# install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# build dist files
- name: Build distribution
run: |
python setup.py sdist bdist_wheel
# install twine
- name: Install twine
run: |
python -m pip install --upgrade twine
# upload
- name: Upload
env:
TWINE_USERNAME: ${{ secrets.USERNAME }}
TWINE_PASSWORD: ${{ secrets.API_KEY }}
run: |
twine upload --repository-url https://test.pypi.org/legacy/ dist/*