From d19cfa47b83c7f5d7ef693137363a85bf1a56286 Mon Sep 17 00:00:00 2001 From: Marty Winkler Date: Sat, 25 Feb 2023 22:29:09 +0100 Subject: [PATCH] chore(ci): add semver release workflow --- .github/workflows/release.yaml | 28 ++++++++++++++++++++++++++++ .releaserc.yaml | 8 ++++++++ README.md | 1 + 3 files changed, 37 insertions(+) create mode 100644 .github/workflows/release.yaml create mode 100644 .releaserc.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..e517662 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,28 @@ +name: release + +on: + push: + branches: + - main + +jobs: + release: + permissions: + contents: write + issues: write + pull-requests: write + name: Create semantic release + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c + with: + persist-credentials: false + + - name: Setup node.js + uses: actions/setup-node@7c29869aec4da703a571b27bcd84d4f15af0b56e + + - name: Create tag and GitHub release + run: npx semantic-release + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/.releaserc.yaml b/.releaserc.yaml new file mode 100644 index 0000000..8e26b96 --- /dev/null +++ b/.releaserc.yaml @@ -0,0 +1,8 @@ +--- +plugins: + - "@semantic-release/commit-analyzer" + - "@semantic-release/release-notes-generator" + - "@semantic-release/github" + +branches: + - main diff --git a/README.md b/README.md index 71dee77..ae5f660 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ [Apprise](https://github.com/caronc/apprise): > allows you to send a notification to almost all of the most popular notification services available to us today such as: Telegram, Discord, Slack, Amazon SNS, Gotify, etc. +[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release) [![build](https://github.com/mrtwnklr/apprise-it-for-me/actions/workflows/build.yaml/badge.svg)](https://github.com/mrtwnklr/apprise-it-for-me/actions/workflows/build.yaml) ## Table of content