Skip to content

Commit 681453d

Browse files
committed
add workflow for pushing rockspec/rocks
1 parent 963f01b commit 681453d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
publish:
10+
if: startsWith(github.ref, 'refs/tags/')
11+
runs-on: ubuntu-20.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: tarantool/setup-tarantool@v1
15+
with:
16+
tarantool-version: '2.7'
17+
18+
- run: echo "TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
19+
- run: tarantoolctl rocks new_version --tag $TAG
20+
- run: tarantoolctl rocks pack graphql-$TAG-1.rockspec
21+
22+
- uses: tarantool/rocks.tarantool.org/github-action@master
23+
with:
24+
auth: ${{ secrets.ROCKS_USERNAME }}:${{ secrets.ROCKS_PASSWORD }}
25+
files: |
26+
graphql-${{ env.TAG }}-1.rockspec
27+
graphql-${{ env.TAG }}-1.src.rock

0 commit comments

Comments
 (0)