Skip to content

Commit

Permalink
ci: use release-please (#280)
Browse files Browse the repository at this point in the history
* add a release-please action, that allows manually creating new releases by merging a PR
* rename VERSION into version.txt
* add an action that checks PRs' title to ensure that it uses the conventional commit format
* remove old CHANGELOG.md
  • Loading branch information
leo-desbureaux-tellae authored Jan 6, 2025
1 parent 3034923 commit 2f3e46e
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 127 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/pr_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Check PR title
on:
pull_request_target:
types:
- opened
- reopened
- edited
- synchronize

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: aslafy-z/conventional-pr-title-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 20 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
branches:
- develop
workflow_dispatch:

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v3
with:
token: ${{ secrets.EQASIM_PAT }}
release-type: simple
125 changes: 0 additions & 125 deletions CHANGELOG.md

This file was deleted.

1 change: 0 additions & 1 deletion VERSION

This file was deleted.

2 changes: 1 addition & 1 deletion documentation/meta_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def configure(context):

def get_version():
version_path = os.path.dirname(os.path.realpath(__file__))
version_path = os.path.realpath("{}/../VERSION".format(version_path))
version_path = os.path.realpath("{}/../version.txt".format(version_path))

with open(version_path) as f:
return f.read().strip()
Expand Down
1 change: 1 addition & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.2.0

0 comments on commit 2f3e46e

Please sign in to comment.