Skip to content

Commit d635c89

Browse files
authored
Merge pull request #94 from TTB-Network/dev/v2
迁移项目至 v2
2 parents dfe1664 + 0815492 commit d635c89

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+2742
-13355
lines changed

.github/workflows/build_and_publish.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Create tagged release
33

44
on:
55
push:
6-
paths:
7-
- 'VERSION'
6+
tags:
7+
- v*
88

99
jobs:
1010
release:
@@ -15,13 +15,7 @@ jobs:
1515
fetch-depth: 0
1616
- name: Set env
1717
run: |
18-
echo "RELEASE_VERSION=$(<VERSION)" >> $GITHUB_ENV
19-
- name: Push a new tag
20-
run: |
21-
git config --global user.name "github-actions[bot]"
22-
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
23-
git tag "${{ env.RELEASE_VERSION }}"
24-
git push origin --tags
18+
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
2519
- uses: actions/setup-node@v3
2620
with:
2721
node-version: 16.x
@@ -34,7 +28,7 @@ jobs:
3428
steps:
3529
- uses: actions/checkout@v4
3630
- name: Set env
37-
run: echo "RELEASE_VERSION=$(<VERSION)" >> $GITHUB_ENV
31+
run: echo "RELEASE_VERSION=$${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
3832
- name: Set up Docker Buildx
3933
uses: docker/setup-buildx-action@v3
4034
- name: Login to Docker Hub

.gitignore

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
.vscode/
2-
config/config.properties
32
**/__pycache__
4-
.venv
53
logs
64
config/config.yml
7-
bmclapi
8-
data
9-
public
10-
.ssl
11-
.lh
125
cache
13-
releases
6+
cert

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ LABEL org.opencontainers.image.title python-openbmclapi
99
WORKDIR /opt/python-openbmclapi
1010
ADD . .
1111

12-
RUN pip install -r requirements.txt --no-deps
12+
RUN pip install --user pipx
13+
RUN pipx install poetry
14+
RUN pipx ensurepath
15+
RUN poetry install
16+
RUN poetry shell
1317
ENV port=80
1418
EXPOSE $port
1519
CMD ["python", "./main.py"]

VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/fixed_location.fxdb

-4.51 KB
Binary file not shown.

assets/ip.xdb

-10.6 MB
Binary file not shown.

bmclapi_dashboard/index.html

Lines changed: 0 additions & 18 deletions
This file was deleted.

bmclapi_dashboard/static/css/boxicons.min.css

Lines changed: 0 additions & 1 deletion
This file was deleted.
-2.09 MB
Binary file not shown.
-843 KB
Binary file not shown.

0 commit comments

Comments
 (0)