-
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.
- Loading branch information
1 parent
ff7c67e
commit d5984d8
Showing
6 changed files
with
39 additions
and
24 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,3 @@ | ||
# config for release-please bot | ||
primaryBranch: main | ||
handleGHRelease: true |
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 |
---|---|---|
|
@@ -9,10 +9,10 @@ jobs: | |
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 | ||
contents: write | ||
pages: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
|
@@ -22,24 +22,32 @@ jobs: | |
- name: Install pypa/build | ||
run: python -m pip install build --user | ||
- name: Setup poetry | ||
uses: abatilo/actions-poetry@v2 | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: 1.8.3 | ||
- name: Install the packages required | ||
run: poetry install --with docs | ||
- 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 | ||
run: poetry build | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ # TODO: change to https://upload.pypi.org/legacy/ after testing | ||
- name: Install mike | ||
run: poetry run mkdocs build | ||
# https://github.com/jimporter/mike/blob/master/README.md#deploying-via-ci | ||
- name: Configure git | ||
run: | | ||
git config user.name PsiQ-Qref | ||
git config user.email [email protected] | ||
- name: Build docs | ||
run: mike deploy $RELEASE_VERSION latest --update-aliases | ||
run: poetry run mike deploy $RELEASE_VERSION latest -u | ||
env: | ||
RELEASE_VERSION: ${GITHUB_REF#refs/*/} # or #{{ github.ref }} | ||
|
||
RELEASE_VERSION: ${{ github.ref_name }} | ||
- name: Push docs | ||
run: git push origin gh-pages:gh-pages | ||
run: | | ||
git pull -f origin gh-pages --rebase | ||
git fetch origin gh-pages --depth=1 | ||
git push -f 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
".": "0.1.13", | ||
"skip-github-release": false | ||
} |
Empty file.
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