Skip to content

Commit

Permalink
ci: add automated release github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleh Hutnikau committed Apr 5, 2021
1 parent caa1baa commit 5b5aec9
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/continous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Continous integration

on:
pull_request:
branches: [ develop ]

jobs:
pr-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git fetch --unshallow --tags
- name: Check commit
if: always()
uses: oat-sa/conventional-commit-action@v0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This workflow will do a release after merge to develop branch

name: Relese Tao extension

on:
pull_request:
branches:
- develop
types: [closed]
jobs:
auto-release:
if: github.event.pull_request.merged == true
name: Automated Tao extension release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Release
uses: oat-sa/extension-release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
github_token: ${{ secrets.GH_TOKEN }}

0 comments on commit 5b5aec9

Please sign in to comment.