1- name : Create and push rockspec for moonlibs/sync
1+ name : Create and push rockspec for moonlibs/kit
22
33on :
44 workflow_run :
@@ -20,33 +20,35 @@ jobs:
2020 if : ${{ github.event.workflow_run.conclusion == 'success' }} && startsWith(github.ref, 'refs/tags/') }}
2121 steps :
2222 - uses : actions/checkout@v4
23- - uses : tarantool/ setup-tarantool@v3
23+ - uses : ./.github/actions/ setup-tarantool
2424 with :
25- tarantool-version : ' 2.11.6 '
25+ only_tt : ' true '
2626
2727 # https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions
2828 - name : Set env
2929 run : echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
3030
31- - run : tarantoolctl rocks new_version --tag=${{ env.TAG }} ${{ env.ROCK_NAME }}-dev-1.rockspec ${{ env.TAG }} "git+https://github.com/${{ github.repository }}.git"
32- - run : tarantoolctl rocks install ${{ env.ROCK_NAME }}-${{ env.TAG }}-1.rockspec
33- - run : tarantoolctl rocks pack ${{ env.ROCK_NAME }}-${{ env.TAG }}-1.rockspec
34- # Install native lua with luarocks
35- - uses : leafo/gh-actions-lua@v11
36- with :
37- luaVersion : " luajit-2.1.0-beta3"
38- - uses : leafo/gh-actions-luarocks@v5
39- with :
40- luaRocksVersion : " 3.8.0"
31+ - run : tt rocks new_version --tag=${{ env.TAG }} ${{ env.ROCK_NAME }}-dev-1.rockspec ${{ env.TAG }} "git+https://github.com/${{ github.repository }}.git"
32+ - run : tt rocks install ${{ env.ROCK_NAME }}-${{ env.TAG }}-1.rockspec
33+ - run : tt rocks pack ${{ env.ROCK_NAME }}-${{ env.TAG }}-1.rockspec
34+
4135 - uses : unfor19/install-aws-cli-action@v1.0.3
42- - run : mkdir .build && cp ${{ env.ROCK_NAME }}-dev-1.rockspec ${{ env.ROCK_NAME }}-${{ env.TAG }}-1.rockspec .build/ && cp *.src.rock .build/
36+ - run :
37+ |
38+ mkdir .build
39+ cp ${{ env.ROCK_NAME }}-dev-1.rockspec ${{ env.ROCK_NAME }}-${{ env.TAG }}-1.rockspec \
40+ .build/
41+ cp *.src.rock .build/
4342 - name : rebuild and publish s3 luarocks server
4443 env :
4544 AWS_ACCESS_KEY_ID : ${{ secrets.MOONLIBS_S3_ACCESS_KEY_ID }}
4645 AWS_SECRET_ACCESS_KEY : ${{ secrets.MOONLIBS_S3_SECRET_KEY}}
4746 AWS_EC2_METADATA_DISABLED : true
4847 run : |
49- cd .build && aws s3 sync s3://moonlibs/ ./ && luarocks-admin make_manifest . && aws s3 sync --acl public-read ./ s3://moonlibs/;
48+ cd .build && \
49+ aws s3 sync s3://moonlibs/ ./ && \
50+ tt rocks admin make_manifest . && \
51+ aws s3 sync --acl public-read ./ s3://moonlibs/;
5052 - uses : " marvinpinto/action-automatic-releases@latest"
5153 with :
5254 repo_token : " ${{ secrets.GITHUB_TOKEN }}"
0 commit comments