move github workflows

This commit is contained in:
an-lee
2024-01-09 15:25:32 +08:00
parent aebd9ee213
commit b885c17e21
4 changed files with 4 additions and 10 deletions

18
.github/workflows/build-enjoy-app.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: Build Enjoy App
on: workflow_dispatch
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, macos-13, macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: install dependencies
run: yarn install
- name: build
run: yarn package:enjoy

20
.github/workflows/release-enjoy-app.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Release Enjoy App
on: workflow_dispatch
jobs:
publish:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: install dependencies
run: yarn install
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
run: yarn publish:enjoy