From 780e810e412eb0544173becde2688e6801e78d0d Mon Sep 17 00:00:00 2001 From: Kevin Klopfenstein Date: Tue, 27 Dec 2022 15:24:51 +0100 Subject: [PATCH] try pipeline --- .github/workflows/ci-test.yml | 25 +++++++++++++++++++++++++ .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 .github/workflows/ci-test.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml new file mode 100644 index 0000000..acb8e91 --- /dev/null +++ b/.github/workflows/ci-test.yml @@ -0,0 +1,25 @@ +name: goreleaser-test + +on: + pull_request: + push: + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - + name: Set up Go + uses: actions/setup-go@v3 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v4 + with: + args: release --snapshot --rm-dist + workdir: ./ + version: snapshot diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..04a8639 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: goreleaser + +on: + push: + tags: + - '*' + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - + name: Set up Go + uses: actions/setup-go@v3 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v4 + with: + version: latest + args: release --rm-dist + workdir: ./ + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COSIGN_PWD: ${{ secrets.COSIGN_PWD }} \ No newline at end of file