lastsunday 构建插件 #102
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: build | |
run-name: ${{ github.actor }} 构建插件 | |
on: | |
push: | |
branches: | |
- dev | |
tags: | |
- "*" | |
permissions: | |
contents: write | |
jobs: | |
build-chrome-extension: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 读取仓库 | |
uses: actions/checkout@v4 | |
- name: 打包 | |
run: | | |
npm install | |
npm run build-chrome | |
- name: 部署 | |
uses: JamesIves/[email protected] | |
with: | |
branch: dist/chrome-${{ github.ref_name }} | |
folder: dist-chrome | |
build-firefox-extension: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 读取仓库 | |
uses: actions/checkout@v4 | |
- name: 打包 | |
run: | | |
npm install | |
npm run build-firefox | |
- name: 部署 | |
uses: JamesIves/[email protected] | |
with: | |
branch: dist/firefox-${{ github.ref_name }} | |
folder: dist-firefox |