From 16c1c2a4658c2bb2574d0888e77475bfb6501e72 Mon Sep 17 00:00:00 2001 From: grzesuav Date: Tue, 23 Aug 2022 00:45:52 +0200 Subject: [PATCH] chore(release): Setup g-semantic-release Signed-off-by: grzesuav --- .github/workflows/master.yaml | 16 ++++++++++++++++ .gitignore | 1 + .semrelrc | 22 ++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 .github/workflows/master.yaml create mode 100644 .gitignore create mode 100644 .semrelrc diff --git a/.github/workflows/master.yaml b/.github/workflows/master.yaml new file mode 100644 index 0000000..ec4120d --- /dev/null +++ b/.github/workflows/master.yaml @@ -0,0 +1,16 @@ +name: Semantic release +on: push +jobs: + sem-rel: + runs-on: ubuntu-22.04 + if: github.ref == 'refs/heads/main' + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + persist-credentials: false + - uses: go-semantic-release/action@v1 + with: + GH_TOKEN: ${{ secrets.PAT }} + github-token: ${{ secrets.PAT }} \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9da7156 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.semrel/ \ No newline at end of file diff --git a/.semrelrc b/.semrelrc new file mode 100644 index 0000000..3b541ca --- /dev/null +++ b/.semrelrc @@ -0,0 +1,22 @@ +{ + "plugins": { + "commit-analyzer": { + "name": "default@^1.0.0" + }, + "ci-condition": { + "name": "default" + }, + "changelog-generator": { + "name": "default", + "options": { + "emojis": "false" + } + }, + "provider": { + "name": "github", + "options": { + "github_use_compare_commits": "true" + } + } + } +} \ No newline at end of file