Skip to content

Commit 2ce9359

Browse files
committed
cd: update the packaging workflow strategy
Before, we create and publish packages only when tag has been pushed, now we try to create packages for each PR and publish them only when tag has been pushed.
1 parent be6fd58 commit 2ce9359

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/packaging.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: packaging
22

3-
on:
4-
push:
5-
tags:
6-
- '*'
3+
on: [push, pull_request]
74

85
jobs:
96
package:
7+
# Skip pull request jobs when the source branch is in the same
8+
# repository.
9+
if: |
10+
github.event_name == 'push' ||
11+
github.event.pull_request.head.repo.full_name != github.repository
1012
runs-on: ubuntu-latest
1113

1214
strategy:
@@ -65,6 +67,8 @@ jobs:
6567
run: ./packpack/packpack
6668

6769
- name: Deploy packages
70+
# We need this step to run only on push with tag.
71+
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
6872
env:
6973
RWS_URL_PART: https://rws.tarantool.org/tarantool-modules
7074
RWS_AUTH: ${{ secrets.RWS_AUTH }}

0 commit comments

Comments
 (0)