1
0
mirror of https://github.com/nitezs/sub2sing-box.git synced 2024-12-23 15:14:43 -05:00

update: github workflow

This commit is contained in:
Nite07 2024-03-19 22:56:23 +08:00
parent 1cbb5dadfc
commit 82edf3d068
4 changed files with 36 additions and 2 deletions

View File

@ -1,6 +1,9 @@
name: Build and Push Docker(Dev)
on:
push:
tags:
- "v[0-9].[0-9].[0-9]-beta*"
workflow_dispatch:
jobs:

View File

@ -3,7 +3,7 @@ name: Build and Push Docker
on:
push:
tags:
- "*"
- "v[0-9].[0-9].[0-9]"
jobs:
build-and-push:

31
.github/workflows/goreleaser-pre.yaml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Build and Release(Beta)
on:
push:
tags:
- "v[0-9].[0-9].[0-9]-beta*"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21.5
- name: Run goreleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean -f .goreleaser.pre.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -3,7 +3,7 @@ name: Build and Release
on:
push:
tags:
- "*"
- "v[0-9].[0-9].[0-9]"
workflow_dispatch:
jobs: