Skip to content

Commit

Permalink
docs(main): auto release node using just
Browse files Browse the repository at this point in the history
Signed-off-by: cuisongliu <[email protected]>
  • Loading branch information
cuisongliu committed Nov 26, 2023
1 parent ac20fc3 commit 5bc82d5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/tagpr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 🚀 tagpr
on:
push:
branches:
- test-release
jobs:
tagpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install just
uses: taiki-e/install-action@just
- uses: Songmu/tagpr@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions .tagpr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[tagpr]
vPrefix = true
releaseBranch = test-release
versionFile = justfile
command = just version-up
3 changes: 2 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ alias build := youki-release
alias youki := youki-dev

KIND_CLUSTER_NAME := 'youki'
version := 0.2.3

cwd := justfile_directory()

Expand Down Expand Up @@ -189,7 +190,7 @@ ci-musl-prepare: ci-prepare
echo "Unknown system. The CI is only configured for Ubuntu. You will need to forge your own path. Good luck!"
exit 1

version-up version:
version-up:
git grep -l "^version = .* # MARK: Version" | xargs sed -i 's/version = "[0-9]\.[0-9]\.[0-9]" # MARK: Version/version = "{{version}}" # MARK: Version/g'
git grep -l "} # MARK: Version" | grep -v justfile | xargs sed -i 's/version = "[0-9]\.[0-9]\.[0-9]" } # MARK: Version/version = "{{version}}" } # MARK: Version/g'
{{ cwd }}/scripts/release_tag.sh {{version}}

0 comments on commit 5bc82d5

Please sign in to comment.