-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.43 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
name: Release with Tag
on:
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Set Node to v16
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: "3.7"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install smartpy
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install SmartPy
run: |
yes | bash <(curl -s https://smartpy.io/cli/install.sh)
- name: Ensure Contracts Compile
run: npm run compile
- name: Ensure Contracts Pass Tests
run: npm run test
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@main
- name: Publish Release on Github
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: ${{ steps.package-version.outputs.current-version}}
prerelease: false
files: |
contracts/xtzfa2swap.py