Skip to content

Commit e3a559d

Browse files
committed
build: update build script
1 parent 17a2d09 commit e3a559d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/beta.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
run: |
3232
VERSION=$(echo "${GITHUB_REF#refs/*/}" | sed s/^v//)
3333
VERSION="$VERSION.0"
34-
echo ::set-output name=VERSION::${VERSION}
35-
echo ::set-output name=APP_NAME::$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')
34+
echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
35+
echo "APP_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_OUTPUT
3636
- name: Build
3737
run: |
3838
dotnet restore ${{ env.project }} --no-cache

.github/workflows/publish.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
run: |
3737
VERSION=$(echo "${GITHUB_REF#refs/*/}" | sed s/^v//)
3838
VERSION="$VERSION.0"
39-
echo ::set-output name=VERSION::${VERSION}
40-
echo ::set-output name=APP_NAME::$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')
39+
echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
40+
echo "APP_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_OUTPUT
4141
- name: Build
4242
run: |
4343
dotnet restore ${{ env.project }} --no-cache
@@ -55,6 +55,7 @@ jobs:
5555
destination_dir: ${{ env.artifact }}
5656
publish_branch: master
5757
publish_dir: ./artifacts
58+
keep_files: true
5859
- name: Publish release
5960
uses: svenstaro/upload-release-action@v2
6061
with:

scripts/generate_manifest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def main():
5656
raise
5757

5858
# 追加新版本/覆盖旧版本
59-
manifest[0]['versions'] = list(filter(lambda x: x['version'] == version, manifest[0]['versions']))
59+
manifest[0]['versions'] = list(filter(lambda x: x['version'] != f"{version}.0", manifest[0]['versions']))
6060
manifest[0]['versions'].insert(0, generate_version(filepath, version, changelog))
6161

6262
with open('manifest.json', 'w') as f:

0 commit comments

Comments
 (0)