-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fields-sorter
- Loading branch information
Showing
4 changed files
with
67 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Build and Publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
# url: https://pypi.org/p/qref | ||
url: https://test.pypi.org/p/qref | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
- name: Install pypa/build | ||
run: python -m pip install build --user | ||
- name: Setup poetry | ||
uses: abatilo/actions-poetry@v2 | ||
- name: Build the package | ||
# run: poetry config pypi-token.pypi ${{ secrets.TWINE_PASSWORD }} | ||
run: poetry config pypi-token.pypi ${{ secrets.TEST_TWINE_PASSWORD }} | ||
|
||
|
||
|
||
- name: Publish the package | ||
run: poetry publish --build | ||
## Uncomment the below after IT trusted publisher pypi request has been submitted | ||
# - name: Publish package distributions to PyPI | ||
# uses: pypa/gh-action-pypi-publish@release/v1 | ||
- name: Build docs | ||
run: mike deploy $RELEASE_VERSION latest --update-aliases | ||
env: | ||
RELEASE_VERSION: ${GITHUB_REF#refs/*/} # or #{{ github.ref }} | ||
|
||
- name: Push docs | ||
run: git push origin gh-pages:gh-pages | ||
|
||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,21 @@ | ||
name: Build and release | ||
name: Manual Trigger | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/qref # TODO: test PyPI | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
- name: Increment version | ||
uses: googleapis/release-please-action@v4 | ||
with: | ||
python-version: 3.9 | ||
- name: Install pypa/build | ||
run: python -m pip install build --user | ||
- name: Build binary wheel and source tarball | ||
run: python -m build --sdist --wheel --outdir dist/ | ||
- name: Publish distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
token: ${{ secrets.RELEASE_PLEASE_TOKEN }} | ||
release-type: python | ||
skip-github-releases: false | ||
skip-github-pull-request: true | ||
|
||
# bumps z in x.y.z if the commit message is: "fix: blah blah blah" (patch) | ||
# bumps y in x.y.z if the commit message is: "feature: blah blah blah" (minor) | ||
# bumps x in x.y.z if the commit message is "fix! or feature!: blah blah blah" (major) |
This file contains 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