-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include (base) dashboard in the builtin-webserver (#593)
Co-authored-by: Martin Hjelmare <[email protected]>
- Loading branch information
1 parent
7eeb288
commit 44679f2
Showing
6 changed files
with
73 additions
and
25 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 |
---|---|---|
|
@@ -3,6 +3,9 @@ name: Publish releases | |
on: | ||
release: | ||
types: [published] | ||
env: | ||
PYTHON_VERSION: "3.10" | ||
NODE_VERSION: "18.x" | ||
|
||
jobs: | ||
build-and-publish-pypi: | ||
|
@@ -28,10 +31,14 @@ jobs: | |
exit 1 | ||
fi | ||
fi | ||
- name: Set up Python 3.10 | ||
- name: Set up Python ${{ env.PYTHON_VERSION }} | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.10" | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- name: Set up Node ${{ env.NODE_VERSION }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
- name: Install build | ||
run: >- | ||
pip install build tomli tomli-w | ||
|
@@ -48,7 +55,13 @@ jobs: | |
with open("pyproject.toml", "wb") as f: | ||
tomli_w.dump(pyproject, f) | ||
- name: Build | ||
- name: Build dashboard | ||
run: | | ||
cd dashboard | ||
script/setup | ||
script/build | ||
cd .. | ||
- name: Build python package | ||
run: >- | ||
python3 -m build | ||
- name: Publish release to PyPI | ||
|
@@ -69,9 +82,9 @@ jobs: | |
- name: Log in to the GitHub container registry | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
- name: Version number for tags | ||
|
@@ -95,8 +108,7 @@ jobs: | |
ghcr.io/${{ github.repository_owner }}/python-matter-server:${{ steps.tags.outputs.major }}, | ||
ghcr.io/${{ github.repository_owner }}/python-matter-server:stable | ||
push: true | ||
build-args: | ||
"PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" | ||
build-args: "PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" | ||
- name: Build and Push pre-release | ||
uses: docker/[email protected] | ||
if: github.event.release.prerelease == true | ||
|
@@ -108,5 +120,4 @@ jobs: | |
ghcr.io/${{ github.repository_owner }}/python-matter-server:${{ steps.tags.outputs.patch }}, | ||
ghcr.io/${{ github.repository_owner }}/python-matter-server:beta | ||
push: true | ||
build-args: | ||
"PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" | ||
build-args: "PYTHON_MATTER_SERVER=${{ needs.build-and-publish-pypi.outputs.version }}" |
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
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