From 7c9dc7be0b7c33e5fe97f6d6aa2eafd5ffeddf96 Mon Sep 17 00:00:00 2001 From: elonzh Date: Thu, 13 May 2021 21:36:33 +0800 Subject: [PATCH] fix: release --- .github/workflows/{golangci-lint.yml => lint.yml} | 5 ++--- .github/workflows/{goreleaser.yml => release.yml} | 11 ++++++++--- 2 files changed, 10 insertions(+), 6 deletions(-) rename .github/workflows/{golangci-lint.yml => lint.yml} (83%) rename .github/workflows/{goreleaser.yml => release.yml} (80%) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/lint.yml similarity index 83% rename from .github/workflows/golangci-lint.yml rename to .github/workflows/lint.yml index bd4e17e..cdc01ed 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/lint.yml @@ -1,11 +1,10 @@ # https://github.com/golangci/golangci-lint-action -name: golangci-lint +name: lint on: push: pull_request: jobs: - golangci: - name: lint + lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/release.yml similarity index 80% rename from .github/workflows/goreleaser.yml rename to .github/workflows/release.yml index 6ce722a..6772897 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/release.yml @@ -1,13 +1,18 @@ # https://goreleaser.com/ci/actions/ -name: goreleaser +name: release on: push: tags: - v* + workflow_run: + workflows: [ lint, test ] + branches: [ main ] + types: + - completed jobs: - goreleaser: - needs: [ lint, test ] + release: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Checkout uses: actions/checkout@v2