-
Notifications
You must be signed in to change notification settings - Fork 16
52 lines (47 loc) · 1.73 KB
/
publish.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: Publish changed files to move-natives on tag creation
on:
workflow_run:
workflows: ["Release rust libmovevm"]
types:
- completed
jobs:
copy-files:
name: Copy files to move-natives
if: startsWith(github.event.workflow_run.head_branch, 'v') # Check if the run was triggered by a tag, adjust 'v' if needed
runs-on: ubuntu-22.04
steps:
- name: Checkout movevm repository
uses: actions/checkout@v4
- name: Push files to move-natives
uses: initia-labs/actions/push-to-repo@main
env:
TOKEN_GITHUB: ${{ secrets.PUBLISH_TOKEN }}
with:
sources: |
precompile/modules/initia_stdlib
precompile/modules/minitia_stdlib
precompile/modules/move_nursery
precompile/modules/move_stdlib
destination-username: "initia-labs"
destination-repo: "move-natives"
destination-branch: "main"
email: "[email protected]"
commit-msg: "bump movevm ${{ github.event.workflow_run.head_branch }}"
- name: Push shared dynamic libraries to builder.js
uses: initia-labs/actions/push-to-repo@main
env:
TOKEN_GITHUB: ${{ secrets.PUBLISH_TOKEN }}
with:
sources: |
api/libmovevm.dylib
api/libcompiler.dylib
api/libmovevm.x86_64.so
api/libmovevm.aarch64.so
api/libcompiler.x86_64.so
api/libcompiler.aarch64.so
destination-username: "initia-labs"
destination-repo: "builder.js"
destination-branch: "main"
destination-dir: "library"
email: "[email protected]"
commit-msg: "bump movevm ${{ github.event.workflow_run.head_branch }}"