Skip to content

Publish changed files to move-natives on tag creation #1

Publish changed files to move-natives on tag creation

Publish changed files to move-natives on tag creation #1

Workflow file for this run

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-latest
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/licompiler.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 }}'