Publish changed files to move-natives on tag creation #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}' |