File tree 3 files changed +53
-0
lines changed
3 files changed +53
-0
lines changed Original file line number Diff line number Diff line change @@ -490,3 +490,48 @@ jobs:
490
490
491
491
- name : Run tests
492
492
run : make test-pure-install
493
+
494
+ publish_deb :
495
+ # if: startsWith(github.ref, 'refs/tags')
496
+ if : (github.event_name == 'push') ||
497
+ (github.event_name == 'pull_request' &&
498
+ github.event.pull_request.head.repo.full_name != github.repository)
499
+ needs :
500
+ - run_tests_deb
501
+
502
+ runs-on : ubuntu-20.04
503
+
504
+ strategy :
505
+ fail-fast : false
506
+
507
+ matrix :
508
+ target :
509
+ - os : ubuntu
510
+ dist : focal # 20.04
511
+ - os : ubuntu
512
+ dist : jammy # 22.04
513
+ - os : debian
514
+ dist : buster # 10
515
+ - os : debian
516
+ dist : bullseye # 11
517
+
518
+ steps :
519
+ - name : Clone the connector repo
520
+ uses : actions/checkout@v3
521
+
522
+ - name : Install tools for package publishing
523
+ run : sudo apt install -y curl make
524
+
525
+ - name : Download pip package artifacts
526
+ uses : actions/download-artifact@v3
527
+ with :
528
+ name : deb_dist
529
+ path : deb_dist
530
+
531
+ - name : Publish artifacts
532
+ run : make deb-dist-publish
533
+ env :
534
+ RWS_REPO : https://rws-dev.tarantool.org
535
+ RWS_AUTH : ${{ secrets.RWS_AUTH }}
536
+ OS : ${{ matrix.target.os }}
537
+ DIST : ${{ matrix.target.dist }}
Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
190
190
- Pack RPM artifacts with GitHub Actions (# 164, #198).
191
191
- Publish RPM artifacts with GitHub Actions (# 164, #198).
192
192
- Pack deb artifacts with GitHub Actions (# 198).
193
+ - Publish deb artifacts with GitHub Actions (# 198).
193
194
194
195
# ## Changed
195
196
- Bump msgpack requirement to 1.0 .4 (PR # 223).
Original file line number Diff line number Diff line change @@ -92,3 +92,10 @@ deb-dist:
92
92
.PHONY : deb-dist-check
93
93
deb-dist-check :
94
94
dpkg -I deb_dist/* .deb
95
+
96
+ .PHONY : deb-dist-publish
97
+ deb-dist-publish :
98
+ $(eval FILE_FLAGS := $(shell find deb_dist/ -type f -regex '.* \.deb' -or -regex '.* \.dsc' \
99
+ | xargs -I {} sh -c ' echo -F $$(basename {})=@{}' | xargs))
100
+ curl -v -LfsS -X PUT ${RWS_REPO} /release/modules/${OS} /${DIST} \
101
+ -F product=python3-tarantool $(FILE_FLAGS ) -u ${RWS_AUTH}
You can’t perform that action at this time.
0 commit comments