Skip to content

Commit e007db1

Browse files
cd: publish deb artifacts
Publish deb artifacts on tag. To test, comment "run only on tags" condition, change RWS_REPO to https://rws-dev.tarantool.org. See [1] about OS support. 1. #257 Closes #198
1 parent aadc4ce commit e007db1

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

.github/workflows/packing.yml

+45
Original file line numberDiff line numberDiff line change
@@ -490,3 +490,48 @@ jobs:
490490

491491
- name: Run tests
492492
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 }}

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
190190
- Pack RPM artifacts with GitHub Actions (#164, #198).
191191
- Publish RPM artifacts with GitHub Actions (#164, #198).
192192
- Pack deb artifacts with GitHub Actions (#198).
193+
- Publish deb artifacts with GitHub Actions (#198).
193194

194195
### Changed
195196
- Bump msgpack requirement to 1.0.4 (PR #223).

Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,10 @@ deb-dist:
9292
.PHONY: deb-dist-check
9393
deb-dist-check:
9494
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}

0 commit comments

Comments
 (0)