Skip to content

Commit 41f3d52

Browse files
committed
Update release workflow
1 parent 119e41f commit 41f3d52

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010

1111
jobs:
1212
generate:
13-
name: Generate cross-platform builds
13+
name: Generate builds
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: olegtarasov/get-tag@v2.1
@@ -22,14 +22,17 @@ jobs:
2222
- name: Checkout the repository
2323
uses: actions/checkout@v4
2424

25-
- uses: actions/setup-go@v5
26-
with:
27-
go-version: '1.21'
25+
- name: Install dependencies
26+
run: |
27+
# TODO(r0x0d): Refactor this https://issues.redhat.com/browse/RSPEED-339
28+
sudo apt update -y
29+
sudo apt install libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-4.0 -y
30+
make install
2831
2932
- name: Generate distribution tarball
3033
run: |
31-
mkdir dist && make distribution-tarball
32-
sudo mv *.tar.gz dist/
34+
VENV_PATH=$(poetry env info --path)
35+
make distribution-tarball SPHINXBUILD=$VENV_PATH/bin/sphinx-build
3336
env:
3437
VERSION: '${{ steps.tagName.outputs.tag }}'
3538

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ clean: ## Clean project files
8181
command_line_assistant.egg-info \
8282
.ruff_cache \
8383
.coverage \
84-
dist \
8584
.tox \
8685
junit.xml \
8786
coverage.xml \
8887
.mypy_cache \
88+
dist \
8989
$(PKGNAME)-$(VERSION).tar.gz
9090
$(MAKE) -C docs clean
9191
$(MAKE) -C data/release/selinux
@@ -126,6 +126,7 @@ html-docs: ## Build html docs
126126
$(MAKE) -C docs html
127127

128128
distribution-tarball: clean ## Generate distribution tarball
129+
mkdir dist
129130
tar --create \
130131
--gzip \
131132
--file /tmp/$(PKGNAME)-$(VERSION).tar.gz \
@@ -151,8 +152,9 @@ distribution-tarball: clean ## Generate distribution tarball
151152
--exclude=.packit.yaml \
152153
--exclude=sonar-project.properties \
153154
--exclude=poetry.toml \
155+
--exclude=dist \
154156
--transform s/^\./$(PKGNAME)-$(VERSION)/ \
155-
. && mv /tmp/$(PKGNAME)-$(VERSION).tar.gz .
157+
. && mv /tmp/$(PKGNAME)-$(VERSION).tar.gz dist
156158

157159
release: ## Interactively bump the version (major, minor, or patch)
158160
@echo "Current version: $(VERSION)"

0 commit comments

Comments
 (0)