add "gcds" to reserved usernames (google cloud directory sync) #44
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: Publish | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [master] | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| deploy: | |
| if: github.repository == 'ocf/ocflib' | |
| name: Publish | |
| runs-on: self-hosted | |
| steps: | |
| - name: Checkout branch | |
| uses: actions/checkout@v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install dependencies | |
| run: | | |
| poetry --version | |
| poetry check --no-interaction | |
| poetry config virtualenvs.in-project true | |
| poetry install --no-interaction | |
| - name: Run tests | |
| run: | | |
| poetry run pytest | |
| - name: Build package | |
| run: | | |
| poetry build --no-interaction | |
| - name: Publish to PyPi | |
| env: | |
| PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | |
| run: | | |
| poetry publish --username __token__ --password $PYPI_TOKEN |