-
Notifications
You must be signed in to change notification settings - Fork 103
61 lines (52 loc) · 1.93 KB
/
prod.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@v1.3.1
with:
path: packages/yoroi-extension
- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- name: npm install
run: |
npm i --legacy-peer-deps
npm i --legacy-peer-deps --prefix packages/yoroi-extension
- name: Build
run: |
cd packages/yoroi-extension
npm run keygen && mv key.pem production-key.pem && npm run prod:stable
- name: Install Octopus CLI
uses: OctopusDeploy/install-octopus-cli-action@v1.1.8
with:
version: latest
- name: Move package file
run: mv "packages/yoroi-extension/Yoroi.zip" yoroi-frontend.${{ steps.package-version.outputs.current-version}}-production.zip
- name: Push package to Octopus Deploy
uses: OctopusDeploy/push-package-action@v1.0.1
with:
packages: 'yoroi-frontend.${{ steps.package-version.outputs.current-version}}-production.zip'
server: https://emurgo.octopus.app
api_key: ${{ secrets.OCTOPUS_API_KEY }}
- name: Create release
uses: OctopusDeploy/create-release-action@v1.1.3
with:
server: https://emurgo.octopus.app
api_key: ${{ secrets.OCTOPUS_API_KEY }}
project: 'yoroi-frontend'
channel: 'Production'
packages: 'yoroi-frontend:${{ steps.package-version.outputs.current-version}}-production'
release_number: '${{ steps.package-version.outputs.current-version}}-production'