-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Deploy
on:
push:
branches:
- main
- master
jobs:
Deploy:
runs-on: ubuntu-latest
if: "! contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout repo
uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Blocklet workflow
uses: blocklet/action-workflow@v1
with:
skip-upload: false
skip-deploy: false
bundle-command: pnpm bundle
store-endpoint: ${{ secrets.STORE_ENDPOINT }}
store-access-token: ${{ secrets.STORE_ACCESS_TOKEN }}
server-endpoint: ${{ secrets.SERVER_ENDPOINT }}
server-access-key: ${{ secrets.SERVER_ACCESS_KEY }}
server-access-secret: ${{ secrets.SERVER_ACCESS_SECRET }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
github-token: ${{ secrets.GITHUB_TOKEN }}