diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 0000000..272de2d --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,10 @@ +--- +coverage: + precision: 2 + round: down + range: '70...90' + status: + project: + default: + target: 70% + threshold: 3% diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml new file mode 100644 index 0000000..7e9a8a7 --- /dev/null +++ b/.github/workflows/releases.yml @@ -0,0 +1,25 @@ +name: Release Automation App + +on: + push: + +permissions: + contents: write + +jobs: + release-automation-app: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Get Version + run: echo "app_version=$(jq -r .version package.json)" >> "$GITHUB_ENV" + - name: Create Release + id: create_release + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ env.app_version }} + name: ${{ env.app_version }} + generate_release_notes: true + draft: false + prerelease: false + make_latest: true diff --git a/README.md b/README.md index c66809e..8e2d8f8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![](https://img.shields.io/codecov/c/gh/opensearch-project/automation-app)](https://app.codecov.io/gh/opensearch-project/automation-app) +![](https://img.shields.io/github/package-json/v/opensearch-project/automation-app?filename=package.json) diff --git a/package.json b/package.json index 8888cd0..8f4cafd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opensearch-automation-app", - "version": "0.1.2", + "version": "0.1.3", "description": "An Automation App that handles all your GitHub Repository Activities", "author": "Peter Zhu", "homepage": "https://github.com/opensearch-project/automation-app",