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 <cuisongliu@qq.com>
  • Loading branch information
cuisongliu committed Nov 18, 2023
1 parent 08c0a23 commit f9be60d
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,45 @@ jobs:
files: |
./${{ env.OUTPUTDIR }}-x86_64.tar.gz
./${{ env.OUTPUTDIR }}-aarch64.tar.gz
docs-pull-request:
name: Create Docs Pull Request
runs-on: ubuntu-22.04
needs:
- release
steps:
- uses: actions/checkout@v3
- name: Determine Release Info
id: info
env:
GITHUB_REF: ${{ github.ref }}
run: |
VERSION=${GITHUB_REF##*v}
MAJOR=${VERSION%%.*}
MINOR=${VERSION%.*}
MINOR=${MINOR#*.}
PATCH=${VERSION##*.}
echo "VERSION=${VERSION}" >> $GITHUB_ENV
echo "OUTPUTDIR=youki_${MAJOR}_${MINOR}_${PATCH}_linux" >> $GITHUB_ENV
echo "INNERDIR=youki-${VERSION}" >> $GITHUB_ENV
- name: Install just
uses: taiki-e/install-action@just
- name: Generator docs
run: |
sudo env PATH=$PATH just version-up ${{ env.VERSION }}
- uses: peter-evans/create-pull-request@v5
with:
title: 'docs: Automated docs Update for ${{ env.VERSION }}'
body: |
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
commit-message: |
🤖 Automatically updates the version numbers in download links within the documentation.
branch: release-note-${{ env.VERSION }}
base: main
signoff: true
labels: |
kind/documentation
delete-branch: true
publish:
name: Publish Packages
needs: build
Expand Down

0 comments on commit f9be60d

Please sign in to comment.