-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release action and precommit hook (#3)
- Loading branch information
Jean Carlos Taveras
authored
May 25, 2020
1 parent
64ef091
commit 7367799
Showing
5 changed files
with
338 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
name: Build Changes | ||
name: Create a Release | ||
on: | ||
push: | ||
branches: [ master ] | ||
tags: | ||
- 'v*' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Build | ||
run: npm run build | ||
- name: Merge Build Changes | ||
run: | | ||
git config --global user.name "Build Changes Action" | ||
git config --global user.email "jctaveras@intellisys.com.do" | ||
git commit -am "Build Current Changes" | ||
git push | ||
- name: Create Release | ||
id: creat_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.