v2.6.4+501 #17
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: 3.Release New Version | |
on: | |
release: | |
types: [ released ] | |
permissions: | |
contents: read | |
packages: write | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: 'pnpm' | |
cache-dependency-path: tools/pnpm-lock.yaml | |
- name: Pnpm install | |
run: | | |
cd tools && pnpm i && cd .. | |
- name: Upload artifacts onto SIT-MC sever | |
if: github.repository == 'plum-tech/mimir' | |
continue-on-error: true | |
env: | |
SITMC_TEMP_SERVER_AUTH: ${{ secrets.SITMC_TEMP_SERVER_AUTH }} | |
run: | | |
node tools/upload-release-sitmc.mjs | |
- name: Install deploy key to deploy g.mysit.life | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.DOCS_SSH_KEY }} | |
known_hosts: ${{ secrets.DOCS_KNOWN_HOST }} | |
- name: Setup git config to deploy g.mysit.life | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Deploy | |
if: github.repository == 'plum-tech/mimir' | |
run: | | |
node tools/publish-release.mjs | |
- name: Notify the latest release | |
if: github.repository == 'plum-tech/mimir' | |
continue-on-error: true | |
env: | |
QQBOT_URL: ${{ secrets.gocq_sendgroupmsg_url }} | |
run: | | |
node tools/bot-notify-release.mjs |