Skip to content

Commit 8effd77

Browse files
committed
feat: add publish-orders workflow for managing sell orders
1 parent 12c0ca4 commit 8effd77

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: publish-orders
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
environment:
7+
description: 'Target environment'
8+
required: true
9+
type: choice
10+
options:
11+
# dev environments
12+
- bellecour-dev
13+
- arbitrum-sepolia-dev
14+
# prod environments
15+
- bellecour-prod
16+
- arbitrum-sepolia-prod
17+
- arbitrum-prod
18+
action:
19+
description: 'Order action'
20+
required: true
21+
type: choice
22+
options:
23+
- publish-sell-order
24+
- revoke-sell-order
25+
26+
jobs:
27+
publish-order:
28+
runs-on: ubuntu-latest
29+
environment: ${{ inputs.environment }}
30+
steps:
31+
- name: Checkout code
32+
uses: actions/checkout@v4
33+
34+
- name: Setup Node.js
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: '20.19.0'
38+
cache: 'npm'
39+
40+
- name: Install dependencies
41+
working-directory: deployment-dapp
42+
run: npm ci
43+
44+
- name: Execute order action
45+
working-directory: deployment-dapp
46+
env:
47+
WALLET_PRIVATE_KEY: ${{ secrets.WEB3MAIL_APP_OWNER_PRIVATEKEY }}
48+
PRICE: ${{ vars.SELL_ORDER_PRICE }}
49+
VOLUME: ${{ vars.SELL_ORDER_VOLUME }}
50+
RPC_URL: ${{ secrets.RPC_URL }}
51+
run: npm run ${{ github.event.inputs.action }}

0 commit comments

Comments
 (0)