File tree Expand file tree Collapse file tree 3 files changed +56
-2
lines changed Expand file tree Collapse file tree 3 files changed +56
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Generate release-artifacts
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *'
7
+
8
+ permissions :
9
+ contents : write
10
+
11
+ jobs :
12
+ generate :
13
+ name : Generate cross-platform builds
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : olegtarasov/get-tag@v2.1
17
+ id : tagName
18
+ with :
19
+ tagRegex : " v(.*)" # Optional. Returns specified group text as tag name. Full tag string is returned if regex is not defined.
20
+ tagRegexGroup : 1 # Optional. Default is 1.
21
+
22
+ - name : Checkout the repository
23
+ uses : actions/checkout@v4
24
+
25
+ - uses : actions/setup-go@v5
26
+ with :
27
+ go-version : ' 1.21'
28
+
29
+ - name : Generate distribution tarball
30
+ run : |
31
+ mkdir dist && make distribution-tarball
32
+ sudo mv *.tar.gz dist/
33
+ env :
34
+ VERSION : ' ${{ steps.tagName.outputs.tag }}'
35
+
36
+ - name : Upload binaries to release
37
+ uses : svenstaro/upload-release-action@v2
38
+ with :
39
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
40
+ file : dist/*
41
+ tag : ${{ github.ref }}
42
+ overwrite : true
43
+ file_glob : true
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ clean: ## Clean project files
85
85
.tox \
86
86
junit.xml \
87
87
coverage.xml \
88
+ .mypy_cache \
88
89
$(PKGNAME ) -$(VERSION ) .tar.gz
89
90
$(MAKE ) -C docs clean
90
91
$(MAKE ) -C data/release/selinux
@@ -139,7 +140,17 @@ distribution-tarball: clean ## Generate distribution tarball
139
140
--exclude=scripts \
140
141
--exclude=docs \
141
142
--exclude=tests \
142
- --exclude=.roproject \
143
+ --exclude=.ropeproject \
144
+ --exclude=.gitlab-ci.yml \
145
+ --exclude=.readthedocs.yaml \
146
+ --exclude=podman-compose.yaml \
147
+ --exclude=schemas \
148
+ --exclude=tox.ini \
149
+ --exclude=renovate.json \
150
+ --exclude=.pre-commit-config.yaml \
151
+ --exclude=.packit.yaml \
152
+ --exclude=sonar-project.properties \
153
+ --exclude=poetry.toml \
143
154
--transform s/^\. /$(PKGNAME ) -$(VERSION ) / \
144
155
. && mv /tmp/$(PKGNAME ) -$(VERSION ) .tar.gz .
145
156
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Summary: A simple wrapper to interact with RAG
16
16
17
17
License: Apache-2.0
18
18
URL: https://github.com/rhel-lightspeed/command-line-assistant
19
- Source0: %{url }/archive /v%{version }/%{name }-%{version }.tar.gz
19
+ Source0: %{url }/releases/download /v%{version }/%{name }-%{version }.tar.gz
20
20
# noarch because there is no extension module for this package.
21
21
BuildArch: noarch
22
22
You can’t perform that action at this time.
0 commit comments