mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
40 lines
802 B
YAML
40 lines
802 B
YAML
name: 'publish'
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build-and-publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: setup node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 18
|
|
|
|
- name: install dependenies
|
|
run: |
|
|
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
|
|
npm install
|
|
|
|
- name: build
|
|
run: npm run build
|
|
|
|
- name: zip
|
|
run: |
|
|
sudo apt install zip -y
|
|
cp manifest.json ./dist/manifest.json
|
|
cd ./dist/
|
|
zip -r ../LLOneBot.zip ./*
|
|
|
|
- name: publish
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
artifacts: 'LLOneBot.zip'
|
|
draft: true
|
|
token: ${{ secrets.RELEASE_TOKEN }}
|