Skip to content

Commit

Permalink
release: move to goreleaser/actions for releases
Browse files Browse the repository at this point in the history
Prior to this commit, new releases were done through a CircleCI that
would invoke a script to tag and release the latest version of the
repository on Github.

This is now replaced by goreleaser, which will do the same, and trigger
the CHANGELOG generation for the next version of the SDK.
  • Loading branch information
lbajolet-hashicorp committed Jun 23, 2022
1 parent 2ed727c commit 5de927d
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 38 deletions.
38 changes: 0 additions & 38 deletions .circleci/config.yml
Expand Up @@ -86,17 +86,6 @@ jobs:
steps:
- checkout
- run: make generate-check
release-sdk:
executor: golang
environment:
<<: *ENVIRONMENT
steps:
- add_ssh_keys:
fingerprints:
- "52:49:7d:88:9b:81:21:fb:71:86:fd:89:c4:4b:95:df" # circleci-key of packer-ci user in GitHub
- checkout
- run: ./scripts/release/release.sh


workflows:
version: 2
Expand All @@ -110,30 +99,3 @@ workflows:
- check-lint
- check-fmt
- check-generate
release:
jobs:
- check-generate
- check-fmt
- check-lint
- test-linux
- trigger-release:
filters:
branches:
only:
- main
type: approval
- release-sdk:
context:
- releases-gpg-private-signing-key
- releases-gpg-public-signing-key
filters:
branches:
only:
- main
requires:
- trigger-release
- check-generate
- check-fmt
- check-lint
- test-linux

23 changes: 23 additions & 0 deletions .github/release.yml
@@ -0,0 +1,23 @@
changelog:
exclude:
labels:
- ignore-for-release
authors:
- dependabot
categories:
- title: Breaking Changes 🛠
labels:
- breaking-change
- title: Exciting New Features 🎉
labels:
- enhancement
- title: Bug fixes🧑‍🔧 🐞
labels:
- bug
- title: Doc improvements 📚
labels:
- docs
- documentation
- title: Other Changes
labels:
- "*"
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,18 @@
name: release

on:
push:
tags:
- "*"

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: GoReleaser
uses: goreleaser/goreleaser-action@v3.0.0
args: "release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 8 additions & 0 deletions .goreleaser.yml
@@ -0,0 +1,8 @@
project_name: packer-plugin-sdk
build:
skip: true
release:
ids:
- 'none'
changelog:
use: github-native

0 comments on commit 5de927d

Please sign in to comment.