Skip to content

Commit

Permalink
修正action,敲定版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
Biubush committed Feb 22, 2023
1 parent 05ce900 commit 851189f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ jobs:
- name: Package the Flask Project
run: |
mv dist/alys dist/alys_v0.0.{{ github.run_number }}_linux_amd64
mv dist/alys dist/alys_v0.0.${{ github.run_number }}_linux_amd64
cd dist
tar -czf alys_v0.0.{{ github.run_number }}_linux_amd64.tar.gz *
mv alys_v0.0.{{ github.run_number }}_linux_amd64.tar.gz ~/alys_v0.0.{{ github.run_number }}_linux_amd64.tar.gz
tar -czf alys_v0.0.${{ github.run_number }}_linux_amd64.tar.gz *
mv alys_v0.0.${{ github.run_number }}_linux_amd64.tar.gz ~/alys_v0.0.${{ github.run_number }}_linux_amd64.tar.gz
- name: Upload build result
uses: actions/upload-artifact@v3
with:
name: build-result
path: ~/alys_v0.0.{{ github.run_number }}_linux_amd64.tar.gz
path: ~/alys_v0.0.${{ github.run_number }}_linux_amd64.tar.gz

linux_arm64:
name: Build for arm64
Expand All @@ -70,10 +70,10 @@ jobs:
mkdir dist
mkdir binary
pyinstaller -D alys.py --add-data "./static:./static" --add-data "./templates:./templates" --distpath dist
mv dist/alys dist/alys_v0.0.{{ github.run_number }}_linux_arm64
mv dist/alys dist/alys_v0.0.${{ github.run_number }}_linux_arm64
cd dist
tar -czf alys_v0.0.{{ github.run_number }}_linux_arm64.tar.gz *
mv alys_v0.0.{{ github.run_number }}_linux_arm64.tar.gz ../binary/alys_v0.0.{{ github.run_number }}_linux_arm64.tar.gz
tar -czf alys_v0.0.${{ github.run_number }}_linux_arm64.tar.gz *
mv alys_v0.0.${{ github.run_number }}_linux_arm64.tar.gz ../binary/alys_v0.0.${{ github.run_number }}_linux_arm64.tar.gz
- name: Upload build result
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -109,17 +109,17 @@ jobs:
- name: Package the Flask Project
run: |
mv dist/alys dist/alys_v0.0.{{ github.run_number }}_windows_x64
mv dist/alys dist/alys_v0.0.${{ github.run_number }}_windows_x64
cd dist
Compress-Archive -Path * -CompressionLevel Optimal -DestinationPath alys_v0.0.{{ github.run_number }}_windows_x64.zip
Compress-Archive -Path * -CompressionLevel Optimal -DestinationPath alys_v0.0.${{ github.run_number }}_windows_x64.zip
mkdir binary
mv alys_v0.0.{{ github.run_number }}_windows_x64.zip ~/alys_v0.0.{{ github.run_number }}_windows_x64.zip
mv alys_v0.0.${{ github.run_number }}_windows_x64.zip ~/alys_v0.0.${{ github.run_number }}_windows_x64.zip
- name: Upload build result
uses: actions/upload-artifact@v3
with:
name: build-result
path: ~/alys_v0.0.{{ github.run_number }}_windows_x64.zip
path: ~/alys_v0.0.${{ github.run_number }}_windows_x64.zip

release:
name: Creat release
Expand All @@ -137,4 +137,4 @@ jobs:
with:
artifacts: "*"
token: ${{ secrets.GITHUB_TOKEN }}
tag: v0.0.{{ github.run_number }}
tag: v0.0.${{ github.run_number }}
2 changes: 1 addition & 1 deletion alys.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def before_request():
WEBSITE = None # 个人ALYS项目域名
USER = None # 临时用户记录,用于登录阿里云盘
STARTUP = False #标志初始化结束
VERSION = "V0.0.51" #当前版本号
VERSION = "V0.0.52" #当前版本号
# ---------------------------------------路由--------------------------------------


Expand Down

0 comments on commit 851189f

Please sign in to comment.