-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release pipeline with changelog.md only (#38)
- also fixed golangci-lint hanging
- Loading branch information
Showing
13 changed files
with
198 additions
and
167 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,48 @@ | ||
name: check-for-new-release | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
tag: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
tagcreated: ${{steps.tag-step.outputs.tagcreated}} | ||
tagname: ${{steps.tag-step.outputs.tagname}} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- id: extract-version-step | ||
run: | | ||
echo "version=$(./cicd/version.sh)" >> $GITHUB_ENV | ||
- id: tag-step | ||
uses: butlerlogic/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
root: "./CHANGELOG.md" | ||
tag_prefix: "v" | ||
regex_pattern: '##[\s]*([0-9\.]{3,})' | ||
|
||
publish-release: | ||
runs-on: ubuntu-latest | ||
needs: tag | ||
if: ${{ needs.tag.outputs.tagcreated == 'yes' }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
run: | | ||
make build-in-docker | ||
- name: Generate Changelog | ||
run: | | ||
VERSION=$(cicd/version.sh) | ||
cicd/changelog.sh $VERSION > bin/CHANGELOG.md | ||
- name: Create GitHub Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
body_path: bin/CHANGELOG.md | ||
files: bin/ydbops* | ||
tag_name: ${{ needs.tag.outputs.tagname }} | ||
env: | ||
GITHUB_TOKEN: ${{ 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
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,5 +1,9 @@ | ||
# Changelog | ||
|
||
## 0.0.10 | ||
+ `version` command | ||
+ new release pipeline - modify CHANGELOG.md only, rest is automatic | ||
|
||
## 0.0.9 | ||
+ Information about version in help output | ||
+ Scripts for build 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
Oops, something went wrong.