v2.4.3+456 #15
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: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install deploy key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.DOCS_SSH_KEY }} | |
known_hosts: ${{ secrets.DOCS_KNOWN_HOST }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
cache-dependency-path: tools/package-lock.json | |
- name: Setup git config | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Npm install | |
run: | | |
cd tools && npm i && cd .. | |
- name: Upload artifacts onto SIT-MC sever | |
if: github.repository == 'liplum-dev/mimir' | |
run: | | |
node tools/upload-release-sitmc.mjs -k ${{ secrets.SITMC_TEMP_SERVER_AUTH }} | |
- name: Deploy | |
if: github.repository == 'liplum-dev/mimir' | |
run: | | |
node tools/publish-release.mjs | |
- name: Notify the latest release | |
if: github.repository == 'liplum-dev/mimir' | |
continue-on-error: true | |
run: | | |
node tools/bot-notify-release.mjs ${{ secrets.gocq_sendgroupmsg_url }} |