Skip to content

Commit 1b7ac99

Browse files
authored
fix: update CI/CD process to enable auto-release workflow (#116)
1 parent 4c65d51 commit 1b7ac99

File tree

8 files changed

+61
-143
lines changed

8 files changed

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

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ repos:
4343
rev: v4.0.1
4444
hooks:
4545
- id: check-merge-conflict
46+
- id: end-of-file-fixer

.releaserc.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
"@semantic-release/github",
11+
[
12+
"@semantic-release/changelog",
13+
{
14+
"changelogFile": "CHANGELOG.md",
15+
"changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file"
16+
}
17+
],
18+
[
19+
"@semantic-release/git",
20+
{
21+
"assets": [
22+
"CHANGELOG.md"
23+
],
24+
"message": "chore(release): version ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
25+
}
26+
]
27+
]
28+
}

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="v2.11.0"></a>
112
## [v2.11.0] - 2021-11-07
123

Makefile

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

examples/s3-replication/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,4 @@ module "s3_bucket" {
136136
]
137137
}
138138

139-
}
139+
}

0 commit comments

Comments
 (0)