Skip to content

Commit a3bd441

Browse files
ci: fixed deploy stages (#151)
1 parent 06ec59b commit a3bd441

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.github/workflows/deploy_to_packagecloud.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: Deploy to packagecloud
2-
on: [release]
2+
on:
3+
push:
4+
tags:
5+
- '*'
36

47
jobs:
58
deploy:
69
strategy:
710
fail-fast: false
811
matrix:
912
os:
10-
- name: el
11-
dist: 6
1213
- name: el
1314
dist: 7
1415
- name: fedora
@@ -39,6 +40,9 @@ jobs:
3940
- name: deps
4041
run: gem install package_cloud
4142

43+
- name: Set env
44+
run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
45+
4246
- name: packpack
4347
run: |
4448
git clone https://github.com/packpack/packpack.git packpack

.github/workflows/push_rockspec.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches: [master]
77
types:
88
- completed
9+
push:
10+
tags:
11+
- '*'
912

1013
env:
1114
ROCK_NAME: "metrics"
@@ -23,7 +26,7 @@ jobs:
2326
https://${{ secrets.ROCKS_USERNAME }}:${{ secrets.ROCKS_PASSWORD }}@rocks.tarantool.org
2427
push-tagged-rockspec:
2528
runs-on: [ ubuntu-latest ]
26-
if: startsWith(github.ref, 'refs/tags') && github.event.workflow_run.conclusion == 'success'
29+
if: startsWith(github.ref, 'refs/tags')
2730
steps:
2831
- uses: actions/checkout@master
2932

.github/workflows/test.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Tests
2-
on: [push]
2+
on:
3+
push:
4+
branches:
5+
- '*'
36
jobs:
47
test:
58
strategy:

0 commit comments

Comments
 (0)