Skip to content

Commit 3be55ba

Browse files
fix a bug
1 parent 6c2694a commit 3be55ba

3 files changed

Lines changed: 50 additions & 25636 deletions

File tree

.github/workflows/ci.yml

Lines changed: 50 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,19 +81,7 @@ jobs:
8181
--output-dir=build\
8282
--lto=yes\
8383
main.py
84-
85-
86-
- name: "Build executeable"
87-
uses: Nuitka/Nuitka-Action@v1.0
88-
with:
89-
standalone: true
90-
onefile: true
91-
follow-imports: true
92-
show-modules: true
93-
macos-app-icon: icon.ico
94-
output-dir: build
95-
lto: yes
96-
script-name: main.py
84+
9785

9886
- name: "Rename application"
9987
run: |
@@ -104,3 +92,52 @@ jobs:
10492
with:
10593
name: OneDisc ${{ needs.get-version-number.outputs.VERSION }} for ${{ matrix.os }}-${{ matrix.arch }}
10694
path: build/onedisc
95+
96+
get-version-number:
97+
runs-on: ubuntu-latest
98+
steps:
99+
- name: "Checkout"
100+
uses: actions/checkout@v5
101+
with:
102+
fetch-depth: 0
103+
- name: "Get version number"
104+
id: get_version
105+
run: |
106+
export VERSION=$(python -c 'print(__import__("version").VERSION)')
107+
export SUB_VER=$(git rev-list --no-merges --count $(git describe --tags --abbrev=0)..HEAD)
108+
echo "Currect Version Number: $VERSION.$SUB_VER"
109+
echo "SUB_VER = $SUB_VER" >> version.py
110+
# Create an environment file
111+
echo "VERSION=${VERSION}.${SUB_VER}" >> $GITHUB_OUTPUT
112+
echo "SUB_VERSION=${SUB_VER}" >> $GITHUB_OUTPUT
113+
outputs:
114+
VERSION: ${{ steps.get_version.outputs.VERSION }}
115+
SUB_VERSION: ${{ steps.get_version.outputs.SUB_VERSION }}
116+
117+
118+
deloy:
119+
runs-on: ubuntu-latest
120+
steps:
121+
122+
- name: "Checkout"
123+
uses: actions/checkout@v5
124+
125+
- name: "Set up Node.js"
126+
uses: actions/setup-node@v4
127+
with:
128+
node-version: '21'
129+
registry-url: 'https://registry.npmjs.org/'
130+
131+
- name: Install requirements
132+
run: |
133+
npm install
134+
135+
- name: Build Documents
136+
run: |
137+
npm run docs:build
138+
139+
- name: Deploy to GitHub Pages
140+
uses: peaceiris/actions-gh-pages@v4
141+
with:
142+
github_token: ${{ secrets.GITHUB_TOKEN }}
143+
publish_dir: ./docs/.vitepress/dist/

.github/workflows/deloy-pages.yml

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

0 commit comments

Comments
 (0)