From 0eeac2c3ec472884ec861bfbc583f16f6f496798 Mon Sep 17 00:00:00 2001 From: zijiren233 Date: Thu, 5 Oct 2023 22:31:37 +0800 Subject: [PATCH] Feat: update workflow --- .github/workflows/build.yml | 12 ++++------ .github/workflows/release_dev.yml | 34 ++++++++++++++++++++++++++++ .github/workflows/release_docker.yml | 4 ++-- 3 files changed, 40 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/release_dev.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 640191a..bb9c04b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,7 +5,6 @@ on: branches: ["main"] pull_request: branches: ["main"] - workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} @@ -32,11 +31,8 @@ jobs: run: | bash build.sh -v dev -P -p "windows,linux,darwin" - - uses: "marvinpinto/action-automatic-releases@latest" + - name: Upload artifact + uses: actions/upload-artifact@v3 with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "dev" - title: "Dev Build" - prerelease: true - files: | - build/* + name: synctv + path: build diff --git a/.github/workflows/release_dev.yml b/.github/workflows/release_dev.yml new file mode 100644 index 0000000..e122216 --- /dev/null +++ b/.github/workflows/release_dev.yml @@ -0,0 +1,34 @@ +name: release_dev + +on: + workflow_dispatch: + +jobs: + release_dev: + strategy: + matrix: + platform: [ubuntu-latest] + go-version: ["1.21"] + name: Release + runs-on: ${{ matrix.platform }} + steps: + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + + - name: Checkout + uses: actions/checkout@v4 + + - name: Build + run: | + bash build.sh -v dev -P -p "windows,linux,darwin" + + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "dev" + title: "Dev Build" + prerelease: true + files: | + build/* diff --git a/.github/workflows/release_docker.yml b/.github/workflows/release_docker.yml index 633d661..2dd3fa4 100644 --- a/.github/workflows/release_docker.yml +++ b/.github/workflows/release_docker.yml @@ -3,7 +3,7 @@ name: release_docker on: push: tags: - - '*' + - "*" jobs: release_docker: @@ -41,4 +41,4 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64,linux/arm64 \ No newline at end of file + platforms: linux/amd64,linux/arm64