Skip to content

Commit 172016f

Browse files
committed
ci: add workflow that publish rockspec
Patch adds workflow for publishing rockspec in Github Actions. Initially similar steps were added for Travis CI in commit 'Add rock publishing' (3728483) but later reverted in scope of issue with discard v2. Follows up #109 Part of #134
1 parent a190b50 commit 172016f

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches: [master]
6+
tags: ['*']
7+
8+
jobs:
9+
publish-scm-1:
10+
if: github.ref == 'refs/heads/master'
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: tarantool/rocks.tarantool.org/github-action@master
15+
with:
16+
auth: ${{ secrets.ROCKS_AUTH }}
17+
files: http-scm-1.rockspec
18+
19+
publish-tag:
20+
if: startsWith(github.ref, 'refs/tags/')
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: tarantool/setup-tarantool@v1
25+
with:
26+
tarantool-version: '2.5'
27+
28+
# Make a release
29+
- run: echo TAG=${GITHUB_REF##*/} >> $GITHUB_ENV
30+
- run: tarantoolctl rocks new_version --tag ${{ env.TAG }}
31+
- run: tarantoolctl rocks install http-${{ env.TAG }}-1.rockspec
32+
- run: tarantoolctl rocks pack http ${{ env.TAG }}
33+
34+
- uses: tarantool/rocks.tarantool.org/github-action@master
35+
with:
36+
auth: ${{ secrets.ROCKS_AUTH }}
37+
files: |
38+
http-${{ env.TAG }}-1.rockspec
39+
http-${{ env.TAG }}-1.all.rock

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1313
### Added
1414

1515
- Replace Travis CI with Github Actions.
16+
- Add workflow that publish rockspec.
1617

1718
## [2.1.0] - 2020-01-30
1819

0 commit comments

Comments
 (0)