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:
parent
1cbb5dadfc
commit
82edf3d068
3
.github/workflows/docker-dev.yaml
vendored
3
.github/workflows/docker-dev.yaml
vendored
@ -1,6 +1,9 @@
|
||||
name: Build and Push Docker(Dev)
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v[0-9].[0-9].[0-9]-beta*"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
2
.github/workflows/docker.yaml
vendored
2
.github/workflows/docker.yaml
vendored
@ -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
31
.github/workflows/goreleaser-pre.yaml
vendored
Normal 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 }}
|
2
.github/workflows/goreleaser.yaml
vendored
2
.github/workflows/goreleaser.yaml
vendored
@ -3,7 +3,7 @@ name: Build and Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "*"
|
||||
- "v[0-9].[0-9].[0-9]"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
Loading…
Reference in New Issue
Block a user