Skip to content

Commit

Permalink
Merge pull request #6 from ourPLCC/stoneyjackson/enable-automatic-5
Browse files Browse the repository at this point in the history
ci: automatic release
  • Loading branch information
StoneyJackson authored Feb 20, 2024
2 parents 5970db2 + 15cbd91 commit d0717f0
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
Thank you for your help! Please read the following before contributing to
this project.

## Legal

This project and its contents are licensed under GPL-3.0 or greater.
See the LICENSE file at the root of this project. Your contributions must
therefore also be licensed under GPL-3.0 or greater.

Also by contributing to this project, you are signing off on the
[Developer Certificate of Origin (DCO)](https://developercertificate.org/)
asserting that your contributions may legally be licensed under GPL-3.0
or greater. If you do not want to sign off on the DCO, close or delete
this PR.

## Instructions

Make all the changes you want. When you are done, request a review.
Work with the maintainer to complete your contribution.
Complete the template below to your best ability.

---

# Template for Final Squash Commit Message

```
Make sure your subject line follows Conventional Commits.
Remember `feat:` trumps `fix:` and add an `!` if it contains a breaking change.
Delete any section that is not needed.
## BREAKING CHANGES
Non backwards compatible changes.
* #Issue-number - Blah blah blah
## Deprecations
Things that will disappear in future releases.
* #Issue-number - Blah blah blah
## Features
New functionality.
New functionality containing non-backwards compatible functionality are also listed above.
* #Issue-number - Blah blah blah
## Fixes
Bug fixes for existing functionality.
Bug fixes containing non-backwards compatible functionality are also listed above.
* #Issue-number - Blah blah blah
---
Those who made this possible:
Co-authored-by: First Last <email>
Co-authored-by: First Last <email>
Co-authored-by: First Last <email>
```
34 changes: 34 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
# yamllint disable line-length
name: Release

on:
push:
branches:
- main

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Tag
uses: codfish/semantic-release-action@v3
id: semantic
with:
branches: |
[
'main'
]
additional-packages: |
[
'conventional-changelog-conventionalcommits'
]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19 changes: 19 additions & 0 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Also here is a project that uses
# semantic-release and specifies its configuration using YAML:
# https://github.com/GeekHomeInside/semantic-release-example/blob/master/.releaserc.yaml
---
branches:
# Only run on main.
- main

plugins:
# Order matters.

- - "@semantic-release/commit-analyzer"
# Analyzes the commit messages since the last release
# and determines the next version number.
# Populates ${nextRelease.version} among other variables.
- preset: conventionalcommits

- - "@semantic-release/github"
# Creates GitHub release entry and uploads specified assets.

0 comments on commit d0717f0

Please sign in to comment.