-
Notifications
You must be signed in to change notification settings - Fork 15
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
Showing
3 changed files
with
67 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: tag-and-release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Get version | ||
id: get_version | ||
run: | | ||
version=$(grep "^version=" aws-connect |cut -f2 -d"=") | ||
echo ::set-output name=version::$version | ||
echo ::set-output name=version_tag::v$version | ||
- name: Tag commit | ||
uses: tvdias/[email protected] | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
tag: "${{steps.get_version.outputs.version_tag}}" | ||
|
||
- name: Extract from changelog | ||
id: extract_changes | ||
run: | | ||
# Must use a temporary file or it loses the formatting | ||
VERSION=${{steps.get_version.outputs.version}}; awk "/## \[$VERSION\]/{flag=1;next}/## \[/{flag=0}flag" CHANGELOG.md > REL-BODY.md | ||
- name: Create Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
tag: ${{steps.get_version.outputs.version_tag}} | ||
artifacts: "*.gem, CHANGELOG.md" | ||
bodyFile: "REL-BODY.md" | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# CHANGELOG | ||
|
||
## [1.0.5] | ||
|
||
- added github action to release | ||
|
||
## [1.0.4] | ||
|
||
- Added version flag | ||
|
||
## [1.0.3] | ||
|
||
- Moved session manager check | ||
|
||
## [1.0.2] | ||
|
||
- Check for AWS CLI version | ||
- Install session manager plugin if not present | ||
|
||
## [1.0.1] | ||
|
||
- Fixed session manager plugin check | ||
|
||
## [1.0.0] | ||
|
||
- Inital release |
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