Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: move to goreleaser/actions for releases #113

Merged
merged 1 commit into from Jun 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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

18 changes: 18 additions & 0 deletions .github/release.yml
@@ -0,0 +1,18 @@
changelog:
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:
- "*"
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,22 @@
name: release

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"

permissions:
# Allow creating GitHub release
contents: write

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