Feat: update workflow

This commit is contained in:
zijiren233 2023-10-05 22:31:37 +08:00
parent 82aa49c34c
commit 0eeac2c3ec
3 changed files with 40 additions and 10 deletions

View File

@ -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

34
.github/workflows/release_dev.yml vendored Normal file
View File

@ -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/*

View File

@ -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
platforms: linux/amd64,linux/arm64