Skip to content

Commit 6608c72

Browse files
author
Luca Pisani
committed
fix snapshot
1 parent 141d291 commit 6608c72

1 file changed

Lines changed: 21 additions & 7 deletions

File tree

.github/workflows/build-snapshot.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,40 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12-
- name: Install dependencies
13-
run: |
14-
sudo apt update
15-
sudo apt install -y rpm
16-
- name: Get version
12+
13+
- name: Install RPM build tools
14+
run: sudo apt update && sudo apt install -y rpm
15+
16+
- name: Set version
1717
run: |
1818
BRANCH_NAME=${GITHUB_REF#refs/heads/release/}
1919
VERSION="$BRANCH_NAME"
2020
RELEASE="snapshot"
2121
echo "VERSION=$VERSION" >> $GITHUB_ENV
2222
echo "RELEASE=$RELEASE" >> $GITHUB_ENV
23+
2324
- name: Create source tarball
2425
run: |
25-
tar -czf notes-${VERSION}.tar.gz --exclude=.git --exclude=.github --ignore-failed-read .
26+
tar -czf notes-${VERSION}.tar.gz \
27+
--exclude=.git \
28+
--exclude=.github \
29+
--exclude=tests \
30+
--exclude=pyproject.toml \
31+
--exclude=poetry.lock \
32+
--exclude=run_tests.py \
33+
--exclude=pytest.ini \
34+
--exclude=GITFLOW.md \
35+
--exclude=INSTALL.sh \
36+
--exclude=.gitignore \
37+
--ignore-failed-read .
38+
2639
- name: Build RPM
2740
run: |
2841
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
2942
mv notes-${VERSION}.tar.gz ~/rpmbuild/SOURCES/
3043
rpmbuild -ba packaging/notes.spec --define "version $VERSION" --define "release $RELEASE"
44+
3145
- uses: actions/upload-artifact@v4
3246
with:
3347
name: notes-${{ env.VERSION }}-${{ env.RELEASE }}.noarch.rpm
34-
path: ~/rpmbuild/RPMS/noarch/notes-${{ env.VERSION }}-${{ env.RELEASE }}.noarch.rpm
48+
path: ~/rpmbuild/RPMS/noarch/notes-${{ env.VERSION }}-${{ env.RELEASE }}.noarch.rpm

0 commit comments

Comments
 (0)