diff --git a/.github/workflows/docker-dev.yaml b/.github/workflows/docker-dev.yaml index d6a3c44..14c5abc 100644 --- a/.github/workflows/docker-dev.yaml +++ b/.github/workflows/docker-dev.yaml @@ -1,6 +1,9 @@ name: Build and Push Docker(Dev) on: + push: + tags: + - "v[0-9].[0-9].[0-9]-beta*" workflow_dispatch: jobs: diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 5c315e1..15a0250 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -3,7 +3,7 @@ name: Build and Push Docker on: push: tags: - - "*" + - "v[0-9].[0-9].[0-9]" jobs: build-and-push: diff --git a/.github/workflows/goreleaser-pre.yaml b/.github/workflows/goreleaser-pre.yaml new file mode 100644 index 0000000..1317b21 --- /dev/null +++ b/.github/workflows/goreleaser-pre.yaml @@ -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 }} diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index 64a16c2..42d731a 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -3,7 +3,7 @@ name: Build and Release on: push: tags: - - "*" + - "v[0-9].[0-9].[0-9]" workflow_dispatch: jobs: