This repository has been archived by the owner on Jul 14, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95a1bd0
commit 701798a
Showing
117 changed files
with
7,608 additions
and
5,946 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
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
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
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,31 +1,38 @@ | ||
name: Create Release on Version Update | ||
name: Build and Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
create_release: | ||
build-and-release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check commit message and version | ||
id: check_version | ||
run: | | ||
commit_message=$(git log -1 --pretty=format:%s) | ||
version=$(echo $commit_message | grep -o -E "v[0-9]+\.[0-9]+\.[0-9]+" || true) | ||
echo "Version found in commit message: $version" | ||
echo "::set-output name=version::$version" | ||
shell: bash | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Get version from package.json | ||
id: app-version | ||
uses: martinbeentjes/[email protected] | ||
|
||
- name: Create Changelog | ||
id: changelog | ||
run: echo "CHANGELOG=$(git log --format='- %s' ${{ github.event.before }}..${{ github.sha }})" >> $GITHUB_ENV | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
id: create-release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ steps.check_version.outputs.version }} | ||
release_name: Release ${{ steps.check_version.outputs.version }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
body: ${{ steps.changelog.outputs.changelog }} | ||
tag_name: v${{ steps.app-version.outputs.current-version}} | ||
name: Release v${{ steps.app-version.outputs.current-version}} | ||
draft: false | ||
prerelease: false |
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
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.