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