-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move python host to packages folder
- Loading branch information
Showing
21 changed files
with
39 additions
and
35 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
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 |
---|---|---|
|
@@ -245,25 +245,25 @@ jobs: | |
run: scripts/release-level.sh ${{ inputs.release-level }} ${{ inputs.release-kind }} >>$GITHUB_OUTPUT | ||
- name: Resolve release version | ||
id: release-version | ||
run: scripts/release-version.sh ./host/python/VERSION ${{ steps.release-level.outputs.RELEASE_LEVEL }} ${{ steps.release-level.outputs.RELEASE_PREID }} >>$GITHUB_OUTPUT | ||
run: scripts/release-version.sh ./packages/python_host/VERSION ${{ steps.release-level.outputs.RELEASE_LEVEL }} ${{ steps.release-level.outputs.RELEASE_PREID }} >>$GITHUB_OUTPUT | ||
# Update version | ||
- name: Update version in pyproject | ||
working-directory: host/python | ||
working-directory: packages/python_host | ||
run: toml set --toml-path pyproject.toml project.version ${{ steps.release-version.outputs.RELEASE_VERSION }} | ||
# Build | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: core-wasm | ||
path: host/python/src/one_sdk/assets | ||
- name: Build host/python | ||
working-directory: host/python | ||
path: packages/python_host/src/one_sdk/assets | ||
- name: Build packages/python_host | ||
working-directory: packages/python_host | ||
run: python -m build | ||
# Changelog | ||
- name: Update changelog | ||
uses: superfaceai/release-changelog-action@v1 | ||
if: ${{ steps.release-level.outputs.RELEASE_TAG == 'latest' }} | ||
with: | ||
path-to-changelog: host/python/CHANGELOG.md | ||
path-to-changelog: packages/python_host/CHANGELOG.md | ||
version: ${{ steps.release-version.outputs.RELEASE_VERSION }} | ||
operation: release | ||
# Commit release changes | ||
|
@@ -272,12 +272,12 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Actions release workflow" | ||
- name: Commit pyproject.toml, VERSION, CHANGELOG.md and create git tag | ||
working-directory: host/python | ||
working-directory: packages/python_host | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git add pyproject.toml VERSION CHANGELOG.md | ||
git commit -m "chore: release host/python ${{ steps.release-version.outputs.RELEASE_VERSION }}" | ||
git commit -m "chore: release packages/python_host ${{ steps.release-version.outputs.RELEASE_VERSION }}" | ||
git tag "python-v${{ steps.release-version.outputs.RELEASE_VERSION }}" | ||
git push origin | ||
git push origin --tags | ||
|
@@ -297,7 +297,7 @@ jobs: | |
id: get-changelog | ||
uses: superfaceai/release-changelog-action@v1 | ||
with: | ||
path-to-changelog: host/python/CHANGELOG.md | ||
path-to-changelog: packages/python_host/CHANGELOG.md | ||
version: ${{ steps.get-changelog-version.outputs.VERSION }} | ||
operation: read | ||
- name: Update GitHub release documentation | ||
|
@@ -328,17 +328,17 @@ jobs: | |
- uses: actions/download-artifact@v3 | ||
with: | ||
name: core-wasm | ||
path: host/python/src/one_sdk/assets | ||
path: packages/python_host/src/one_sdk/assets | ||
- name: Copy LICENSE | ||
run: cp LICENSE host/python/LICENSE | ||
- name: Build host/python | ||
working-directory: host/python | ||
run: cp LICENSE packages/python_host/LICENSE | ||
- name: Build packages/python_host | ||
working-directory: packages/python_host | ||
run: python -m build | ||
# Publish | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
packages-dir: host/python/dist | ||
packages-dir: packages/python_host/dist | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
|
||
|
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.