-
Notifications
You must be signed in to change notification settings - Fork 10
97 lines (89 loc) · 2.94 KB
/
release.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Stellar expert release contracts workflow
on:
workflow_dispatch:
inputs:
release_name:
description: 'Unique name for the release'
required: true
type: string
permissions:
contents: write
pull-requests: write
repository-projects: write
packages: write
defaults:
run:
working-directory: ./
jobs:
release-soroswap-token:
needs: []
runs-on: ubuntu-latest
steps:
- name: Create release
uses: stellar-expert/soroban-build-workflow/.github/workflows/release.yml@main
with:
release_name: ${{ github.ref_name }}
release_description: 'soroswap token contract release'
relative_path: './contracts/token'
package: 'soroban-token-contract'
make_target: './Makefile'
env:
RELEASE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload soroswap token artifact
uses: actions/upload-artifact@v3
with:
name: soroswap-token
path: ./contracts/token/target
release-soroswap-pair:
needs: [release-soroswap-token]
runs-on: ubuntu-latest
steps:
- name: Download soroswap token artifact
uses: actions/download-artifact@v3
with:
name: soroswap-token
path: ./contracts/token/target
- name: Create release
uses: stellar-expert/soroban-build-workflow/.github/workflows/release.yml@main
with:
release_name: ${{ github.ref_name }}
release_description: 'soroswap pair contract release'
relative_path: './contracts/pair'
package: 'soroban-pair'
make_target: './Makefile'
env:
RELEASE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload soroswap pair artifact
uses: actions/upload-artifact@v3
with:
name: soroswap-pair
path: ./contracts/pair/target
release-soroswap-factory:
needs: [release-soroswap-token, release-soroswap-pair]
runs-on: ubuntu-latest
steps:
- name: Download soroswap token artifact
uses: actions/download-artifact@v3
with:
name: soroswap-token
path: ./contracts/token/target
- name: Download soroswap pair artifact
uses: actions/download-artifact@v3
with:
name: soroswap-pair
path: ./contracts/pair/target
- name: Create release
uses: stellar-expert/soroban-build-workflow/.github/workflows/release.yml@main
with:
release_name: ${{ github.ref_name }}
release_description: 'soroswap factory contract release'
relative_path: './contracts/factory'
package: 'soroban-factory'
make_target: './Makefile'
env:
RELEASE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload soroswap factory artifact
uses: actions/upload-artifact@v3
with:
name: soroswap-factory
path: ./contracts/factory/target