Skip to content

Commit 1dd6ae9

Browse files
authored
fix: update CI/CD process to enable auto-release workflow (#233)
1 parent 32e3ad3 commit 1dd6ae9

File tree

7 files changed

+69
-139
lines changed

7 files changed

+69
-139
lines changed

.chglog/CHANGELOG.tpl.md

Lines changed: 0 additions & 111 deletions
This file was deleted.

.chglog/config.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
paths:
10+
- '**/*.py'
11+
- '**/*.tf'
12+
13+
jobs:
14+
release:
15+
name: Release
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
with:
21+
persist-credentials: false
22+
fetch-depth: 0
23+
24+
- name: Release
25+
uses: cycjimmy/semantic-release-action@v2
26+
with:
27+
semantic_version: 18.0.0
28+
extra_plugins: |
29+
@semantic-release/changelog@6.0.0
30+
@semantic-release/git@10.0.0
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}

.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.56.0
3+
rev: v1.58.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_validate
@@ -11,4 +11,3 @@ repos:
1111
rev: v4.0.1
1212
hooks:
1313
- id: check-merge-conflict
14-
- id: end-of-file-fixer

.releaserc.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"branches": [
3+
"main",
4+
"master"
5+
],
6+
"ci": false,
7+
"plugins": [
8+
"@semantic-release/commit-analyzer",
9+
"@semantic-release/release-notes-generator",
10+
[
11+
"@semantic-release/github",
12+
{
13+
"successComment":
14+
"This ${issue.pull_request ? 'PR is included' : 'issue has been resolved'} in version ${nextRelease.version} :tada:",
15+
"labels": false,
16+
"releasedLabels": false
17+
}
18+
],
19+
[
20+
"@semantic-release/changelog",
21+
{
22+
"changelogFile": "CHANGELOG.md",
23+
"changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file."
24+
}
25+
],
26+
[
27+
"@semantic-release/git",
28+
{
29+
"assets": [
30+
"CHANGELOG.md"
31+
],
32+
"message": "chore(release): version ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
33+
}
34+
]
35+
]
36+
}

CHANGELOG.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
# Change Log
2-
3-
All notable changes to this project will be documented in this file.
4-
5-
<a name="unreleased"></a>
6-
## [Unreleased]
7-
8-
9-
101
<a name="v4.5.0"></a>
112
## [v4.5.0] - 2021-11-20
123

Makefile

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)