Skip to content

Commit

Permalink
Feat: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Oct 5, 2023
1 parent 82aa49c commit 0eeac2c
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 10 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -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 changes: 34 additions & 0 deletions .github/workflows/release_dev.yml
Original file line number Diff line number Diff line change
@@ -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/*
4 changes: 2 additions & 2 deletions .github/workflows/release_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: release_docker
on:
push:
tags:
- '*'
- "*"

jobs:
release_docker:
Expand Down Expand Up @@ -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

0 comments on commit 0eeac2c

Please sign in to comment.