Skip to content

Commit

Permalink
Add CI workflow and rename workflow files
Browse files Browse the repository at this point in the history
Signed-off-by: William So <polyipseity@gmail.com>
  • Loading branch information
polyipseity committed Jan 11, 2024
1 parent 3338aa9 commit bfde8ed
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/latest.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
jobs:
build:
release-latest:
permissions:
contents: write
runs-on: ubuntu-latest
Expand All @@ -20,22 +20,7 @@ jobs:
env:
GH_TOKEN: ${{github.token}}
run: |
gh release upload latest .github/*.tgz main.js manifest.json styles.css --clobber
build-pnpm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: pnpm/action-setup@v2
with:
version: '*'
- uses: actions/setup-node@v3
with:
cache: pnpm
node-version: '*'
- run: pnpm install
- run: pnpm build
gh release upload latest .github/*.tgz --clobber
on:
push:
tags:
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
cache: npm
node-version: '*'
- run: npm ci
- run: npm run build
build-pnpm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: pnpm/action-setup@v2
with:
version: '*'
- uses: actions/setup-node@v3
with:
cache: pnpm
node-version: '*'
- run: pnpm install
- run: pnpm build
on:
pull_request_target:
push:
workflow_dispatch:
permissions: {}

0 comments on commit bfde8ed

Please sign in to comment.