Add final to workflow.yaml #13
This file contains hidden or 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: 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: | | |
| python3 setup.py sdist bdist_wheel | |
| #upload | |
| - name: Upload | |
| env: | |
| TWINE_USERNAME: ${{ secrets.USERNAME }} | |
| TWINE_PASSWORD: ${{ secrets.API_KEY }} |