Skip to content

Commit

Permalink
github-actions-release
Browse files Browse the repository at this point in the history
  • Loading branch information
hypnoglow committed Aug 23, 2022
1 parent b1079e0 commit 2e6e5ef
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,6 @@ jobs:
echo "Check installation of version ${version}"
helm plugin install https://github.com/hypnoglow/helm-s3.git --version ${version}
release:
docker:
- image: cimg/go:1.19
environment:
GOFLAGS: "-mod=vendor"
steps:
- attach_workspace:
at: .
- deploy:
name: goreleaser
command: |
export GORELEASER_PREVIOUS_TAG="v0.12.0"
if [ -n "$CIRCLE_TAG" ]; then
curl -sL https://git.io/goreleaser | bash
fi
workflows:
version: 2
Expand All @@ -79,14 +64,6 @@ workflows:
only: /.*/
branches:
ignore: /.*/
- release:
requires:
- dep
filters:
tags:
only: /.*/
branches:
ignore: /.*/
- test-install:
requires:
- release
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: release

on:
push:
tags:
- 'v*'

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
with:
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a # v3.2.1
with:
cache: true
go-version-file: 'go.mod'

- name: Download dependencies
run: |
go mod download -x
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@68acf3b1adf004ac9c2f0a4259e85c5f66e99bef # v3.0.0
with:
version: latest
args: release --rm-dist --config=.goreleaser.yml
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_PREVIOUS_TAG: ""
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ archives:
files:
- LICENSE
- plugin.yaml

release:
draft: true

0 comments on commit 2e6e5ef

Please sign in to comment.