-
Notifications
You must be signed in to change notification settings - Fork 49
57 lines (48 loc) · 1.85 KB
/
octopus.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
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: get-npm-version
id: package-version
uses: martinbeentjes/[email protected]
with:
path: apps/wallet-mobile
- name: Install Octopus CLI
uses: OctopusDeploy/[email protected]
with:
version: latest
- name: Create Archive
run: tar czvf /tmp/yoroi.tar.gz -C $(pwd) .
- name: Move package file
run: mv "/tmp/yoroi.tar.gz" yoroi.${{ steps.package-version.outputs.current-version}}.tar.gz
- name: Push package to Octopus Deploy
uses: OctopusDeploy/[email protected]
with:
packages: 'yoroi.${{ steps.package-version.outputs.current-version}}.tar.gz'
server: https://emurgo.octopus.app
api_key: ${{ secrets.OCTOPUS_API_KEY }}
- name: Create release for Nightly
uses: OctopusDeploy/[email protected]
with:
server: https://emurgo.octopus.app
api_key: ${{ secrets.OCTOPUS_API_KEY }}
project: 'yoroi'
channel: 'Nightly'
packages: 'yoroi:${{ steps.package-version.outputs.current-version}}'
release_number: '${{ steps.package-version.outputs.current-version}}-nightly'
- name: Create release for Production
uses: OctopusDeploy/[email protected]
with:
server: https://emurgo.octopus.app
api_key: ${{ secrets.OCTOPUS_API_KEY }}
project: 'yoroi'
channel: 'Production'
packages: 'yoroi:${{ steps.package-version.outputs.current-version}}'
release_number: '${{ steps.package-version.outputs.current-version}}-production'