-
Notifications
You must be signed in to change notification settings - Fork 13
47 lines (42 loc) · 1.1 KB
/
contract-showcase-ci.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
name: Contract Showcase CI
on:
push:
paths:
- contracts_showcase/**
defaults:
run:
working-directory: ./contracts_showcase/
jobs:
find-out-changes:
runs-on: ubuntu-latest
outputs:
dirs: ${{ steps.changed-files.dirs }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
dir_names: true
do-stuff:
runs-on: ubuntu-latest
strategy:
matrix: ${{fromJson(needs.find-out-changes.outputs.dirs)}}
needs:
- find-out-changes
steps:
- uses: actions/checkout@v3
- run: ls
# - name: Deploy
# run: |
# if npm run deploy | grep -q "Contract deployed"; then
# echo "Contract successfully deployed!"
# else
# echo "Failed to deploy contract ..."
# exit 1
# fi
# env:
# JSON_RPC_URL_PUBLIC: ${{ secrets.JSON_RPC_URL_PUBLIC }}
# WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }}