Skip to content

Commit

Permalink
chore: reintroduce semantic versioning through github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvanr committed May 8, 2023
1 parent f254217 commit d86d668
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 15 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Semantic versioning

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: ["main", "develop"]
pull_request:
branches: ["main", "develop"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
versioning:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Need these two configurations because this job runs on protected branches
fetch-depth: 0
persist-credentials: false
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
with:
semantic_version: 18
branches: |
[
"main",
{
"name": "develop",
"prerelease": true
}
]
extra_plugins: |
"@semantic-release/commit-analyzer"
"@semantic-release/release-notes-generator"
"@semantic-release/github"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14 changes: 0 additions & 14 deletions .releaserc.json

This file was deleted.

2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# IATI.cloud

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=zimmerman-zimmerman_iati.cloud&metric=alert_status)](https://sonarcloud.io/dashboard?id=zimmerman-zimmerman_iati.cloud)
[![License: AGPLv3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://github.com/zimmerman-zimmerman/OIPA/blob/master/LICENSE.MD)
[![License: AGPLv3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://github.com/zimmerman-zimmerman/OIPA/blob/main/LICENSE.MD)
[![Open issues](https://img.shields.io/github/issues/zimmerman-zimmerman/OIPA.svg?style=flat)](https://github.com/zimmerman-team/iati.cloud/issues)
---

Expand Down

0 comments on commit d86d668

Please sign in to comment.