Mroonga 14.12 has been released!!! #1
Workflow file for this run
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
name: Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
push: | |
name: Push | |
runs-on: ubuntu-latest | |
env: | |
GROONGA_ORG_REPOSITORY: groonga.org | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/checkout@v4 | |
with: | |
path: ${{ env.GROONGA_ORG_REPOSITORY }} | |
repository: groonga/groonga.org | |
- name: Setup Git user | |
run: | | |
git config user.name "github-actions[bot]" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Wait for upload of mroonga/mroonga asset | |
run: | | |
run_id=$(gh run list \ | |
--repo mroonga/mroonga \ | |
--workflow release.yml \ | |
--limit 1 \ | |
--branch "v${GITHUB_REF_NAME}" \ | |
--status success \ | |
--json databaseId \ | |
--jq ".[].databaseId") | |
gh run watch "${run_id}" --repo mroonga/mroonga --exit-status | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Update docs | |
run: | | |
set -x | |
tag_name="${GITHUB_REF_NAME}" | |
archive_name="documents-${tag_name}" | |
wget --quiet "https://github.com/mroonga/mroonga/releases/download/v${tag_name}/${archive_name}.tar.gz" | |
rm -rf docs ja/docs | |
tar -xzf "${archive_name}.tar.gz" --strip-components 1 | |
git add ja docs | |
git commit -m "${GITHUB_REF_NAME} has been released!!!" | |
git push origin HEAD:main | |
- name: Update blog | |
run: | | |
set -x | |
tag_name="${GITHUB_REF_NAME}" | |
rake release:blog:generate | |
git add "*/_posts/*-mroonga-${tag_name}.md" | |
git commit -m "blog: add an article about Mroonga ${tag_name}" | |
git push origin HEAD:main |