-
Notifications
You must be signed in to change notification settings - Fork 5
64 lines (52 loc) · 1.3 KB
/
cd.yml
File metadata and controls
64 lines (52 loc) · 1.3 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: deploy
on:
workflow_call:
inputs:
environment:
required: false
type: string
secrets:
ENV:
required: false
SSH_DEPLOY_KEY:
required: false
permissions:
contents: read
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
jobs:
cd:
name: Deploy
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
- name: Check Out Code
uses: actions/checkout@v3
- name: Use Node 22
uses: actions/setup-node@v3
with:
node-version: 22
# - name: Create Dotenv File
# run: |
# echo "${{ secrets.ENV }}" > .env
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install
- name: Build chrome
uses: borales/actions-yarn@v4
with:
cmd: build:chrome
- name: Set current date as env variable
id: get-datetime
run: |
echo "time_now=$(date +'%Y-%m-%dT%H-%M-%S')" >> $GITHUB_OUTPUT
- name: Rename output zip
run: |
mkdir output
mv dist/chrome.zip output/chrome.zip
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: miden-wallet-build
path: output/chrome.zip