1
1
name : PR Build and Merge
2
2
3
- permissions :
4
- - write
5
-
6
3
on :
7
4
pull_request :
8
5
branches :
13
10
permissions :
14
11
pull-requests : write
15
12
runs-on : ubuntu-latest
16
- if : github.event.pull_request.merged
13
+ # if: github.event.pull_request.merged
17
14
steps :
18
15
- name : Checkout code
19
16
uses : actions/checkout@v3
@@ -47,16 +44,22 @@ jobs:
47
44
chmod +x scripts/localnet.sh
48
45
./scripts/localnet.sh --build-only
49
46
50
- - name : Create a files
51
- working-directory : ${{ github.workspace }}
52
- run : |
53
- mkdir -p ${{ github.workspace }}/nodes/fast-blocks/release
54
- mkdir -p ${{ github.workspace }}/nodes/non-fast-blocks/release
55
- echo "fast-blocks" > ${{ github.workspace }}/nodes/fast-blocks/release/node-subtensor
56
- echo "non-fast-blocks" > ${{ github.workspace }}/nodes/non-fast-blocks/release/node-subtensor
47
+ # - name: Create a files
48
+ # working-directory: ${{ github.workspace }}
49
+ # run: |
50
+ # mkdir -p ${{ github.workspace }}/nodes/fast-blocks/release
51
+ # mkdir -p ${{ github.workspace }}/nodes/non-fast-blocks/release
52
+ # echo "fast-blocks" > ${{ github.workspace }}/nodes/fast-blocks/release/node-subtensor
53
+ # echo "non-fast-blocks" > ${{ github.workspace }}/nodes/non-fast-blocks/release/node-subtensor
54
+
55
+ - name : Upload fast-blocks
56
+ uses : actions/upload-artifact@v4
57
+ with :
58
+ name : fast-blocks
59
+ path : ${{ github.workspace }}/nodes/fast-blocks/release/node-subtensor
57
60
58
- - name : Upload artifact
59
- uses : actions/upload-artifact@v3
61
+ - name : Upload non-fast-blocks
62
+ uses : actions/upload-artifact@v4
60
63
with :
61
- name : my-artifact
62
- path : ${{ github.workspace }}/nodes
64
+ name : non-fast-blocks
65
+ path : ${{ github.workspace }}/nodes/non-fast-blocks/release/node-subtensor
0 commit comments