diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e8beeb2..05bd748 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,19 +3,24 @@ jobs: test-and-deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v3 with: python-version: '3.6' + - name: Run tests run: | pip install babel flask pip install . python -m tests + - name: Install pypa/build run: python -m pip install build --user + - name: Build a binary wheel and a source tarball run: python -m build --sdist --wheel --outdir dist/ . + - name: Deploy to PyPI if: ${{ github.ref == 'refs/heads/main' }} uses: pypa/gh-action-pypi-publish@release/v1