From e66093c868e759bebcdc236c1c8d37fd15d77423 Mon Sep 17 00:00:00 2001 From: metacubex Date: Sun, 27 Nov 2022 19:50:54 +0800 Subject: [PATCH] Bump Version --- .github/workflows/build.yml | 51 ++++++++++++++++++++++--------------- src/version.h | 2 +- 2 files changed, 31 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2189e8e..032379b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,11 +1,22 @@ name: GitHub CI -on: [push] +on: [ push ] concurrency: group: ${{ github.ref }}-${{ github.workflow }} cancel-in-progress: true jobs: + first_step: + name: Delete current assets + runs-on: ubuntu-latest + steps: + - name: Delete current release assets + uses: andreaswilli/delete-release-assets-action@v2.0.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + tag: Alpha + deleteOnlyFromDrafts: false + linux32_build: name: Linux x86 Build runs-on: ubuntu-latest @@ -22,14 +33,13 @@ jobs: name: subconverter_linux32 path: subconverter/ - name: Package Release - if: startsWith(github.ref, 'refs/tags/') run: tar czf subconverter_linux32.tar.gz subconverter - name: Draft Release uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') with: files: subconverter_linux32.tar.gz - draft: true + release: true + tag_name: Alpha linux64_build: name: Linux x86_64 Build @@ -47,14 +57,13 @@ jobs: name: subconverter_linux64 path: subconverter/ - name: Package Release - if: startsWith(github.ref, 'refs/tags/') run: tar czf subconverter_linux64.tar.gz subconverter - name: Draft Release uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') with: files: subconverter_linux64.tar.gz - draft: true + release: true + tag_name: Alpha armv7_build: name: Linux armv7 Build @@ -74,14 +83,13 @@ jobs: name: subconverter_armv7 path: subconverter/ - name: Package Release - if: startsWith(github.ref, 'refs/tags/') run: tar czf subconverter_armv7.tar.gz subconverter - name: Draft Release uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') with: files: subconverter_armv7.tar.gz - draft: true + release: true + tag_name: Alpha armhf_build: name: Linux armhf Build @@ -107,6 +115,7 @@ jobs: with: files: subconverter_armhf.tar.gz release: true + tag_name: Alpha aarch64_build: name: Linux aarch64 Build @@ -132,6 +141,7 @@ jobs: with: files: subconverter_aarch64.tar.gz release: true + tag_name: Alpha macos_build: name: macOS Build @@ -149,14 +159,14 @@ jobs: name: subconverter_darwin64 path: subconverter/ - name: Package Release - if: startsWith(github.ref, 'refs/tags/') run: tar czf subconverter_darwin64.tar.gz subconverter - name: Draft Release uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') with: files: subconverter_darwin64.tar.gz - draft: true + release: true + tag_name: Alpha + windows64_build: name: Windows x86_64 Build @@ -168,7 +178,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2-beta with: - node-version: '12' + node-version: '16' - uses: msys2/setup-msys2@v2 with: update: true @@ -186,14 +196,13 @@ jobs: name: subconverter_win64 path: subconverter/ - name: Package Release - if: startsWith(github.ref, 'refs/tags/') run: 7z a subconverter_win64.7z subconverter/ - name: Draft Release uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') with: files: subconverter_win64.7z - draft: true + release: true + tag_name: Alpha windows32_build: name: Windows x86 Build @@ -205,7 +214,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2-beta with: - node-version: '12' + node-version: '16' - uses: msys2/setup-msys2@v2 with: update: true @@ -223,11 +232,11 @@ jobs: name: subconverter_win32 path: subconverter/ - name: Package Release - if: startsWith(github.ref, 'refs/tags/') run: 7z a subconverter_win32.7z subconverter/ - name: Draft Release uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') with: files: subconverter_win32.7z - draft: true + release: true + tag_name: Alpha + diff --git a/src/version.h b/src/version.h index 89ff6b1..814dafa 100644 --- a/src/version.h +++ b/src/version.h @@ -1,6 +1,6 @@ #ifndef VERSION_H_INCLUDED #define VERSION_H_INCLUDED -#define VERSION "v0.7.2 Meta" +#define VERSION "v0.7.3 Meta" #endif // VERSION_H_INCLUDED