-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (40 loc) · 1.3 KB
/
publish.yaml
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
name: Publish
on:
push:
branches: [master]
tags: ['*']
jobs:
publish-scm-1:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: tarantool/rocks.tarantool.org/github-action@master
with:
auth: ${{ secrets.ROCKS_AUTH }}
files: membership-scm-1.rockspec
publish-tag:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-20.04
env:
CMAKE_LDOC_FIND_REQUIRED: 'YES'
steps:
- uses: actions/checkout@v3
- uses: tarantool/setup-tarantool@v2
with:
tarantool-version: '2.5'
# Setup ldoc
- run: tarantoolctl rocks install ldoc
--server=https://tarantool.github.io/LDoc/
- run: echo $PWD/.rocks/bin >> $GITHUB_PATH
# Make a release
- run: echo TAG=${GITHUB_REF##*/} >> $GITHUB_ENV
- run: tarantoolctl rocks new_version --tag ${{ env.TAG }}
- run: tarantoolctl rocks install membership-${{ env.TAG }}-1.rockspec
- run: tarantoolctl rocks pack membership ${{ env.TAG }}
- uses: tarantool/rocks.tarantool.org/github-action@master
with:
auth: ${{ secrets.ROCKS_AUTH }}
files: |
membership-${{ env.TAG }}-1.rockspec
membership-${{ env.TAG }}-1.all.rock