437adead28
Bumps the github-actions group with 2 updates: [ncipollo/release-action](https://github.com/ncipollo/release-action) and [actions/github-script](https://github.com/actions/github-script). Updates `ncipollo/release-action` from 1.20.0 to 1.21.0 - [Release notes](https://github.com/ncipollo/release-action/releases) - [Commits](https://github.com/ncipollo/release-action/compare/v1.20.0...v1.21.0) Updates `actions/github-script` from 7 to 8 - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v7...v8) --- updated-dependencies: - dependency-name: ncipollo/release-action dependency-version: 1.21.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/github-script dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
name: AstrBot Dashboard CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: '24.13.0'
|
|
|
|
- name: npm install, build
|
|
run: |
|
|
cd dashboard
|
|
npm install pnpm -g
|
|
pnpm install
|
|
pnpm i --save-dev @types/markdown-it
|
|
pnpm run build
|
|
|
|
- name: Inject Commit SHA
|
|
id: get_sha
|
|
run: |
|
|
echo "COMMIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
|
mkdir -p dashboard/dist/assets
|
|
echo $COMMIT_SHA > dashboard/dist/assets/version
|
|
cd dashboard
|
|
zip -r dist.zip dist
|
|
|
|
- name: Archive production artifacts
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: dist-without-markdown
|
|
path: |
|
|
dashboard/dist
|
|
!dist/**/*.md
|
|
|
|
- name: Create GitHub Release
|
|
if: github.event_name == 'push'
|
|
uses: ncipollo/release-action@v1.21.0
|
|
with:
|
|
tag: release-${{ github.sha }}
|
|
owner: AstrBotDevs
|
|
repo: astrbot-release-harbour
|
|
body: "Automated release from commit ${{ github.sha }}"
|
|
token: ${{ secrets.ASTRBOT_HARBOUR_TOKEN }}
|
|
artifacts: "dashboard/dist.zip"
|