diff --git a/.github/workflows/build-rpm.yml b/.github/workflows/build-rpm.yml index f45fc91..5a00269 100644 --- a/.github/workflows/build-rpm.yml +++ b/.github/workflows/build-rpm.yml @@ -30,6 +30,8 @@ jobs: - name: Checkout source code uses: actions/checkout@v3 + with: + fetch-depth: '0' - name: Create source tarball run: | @@ -44,6 +46,13 @@ jobs: build/CPackConfig.cmake) \ " >> $GITHUB_ENV + - name: Push Git Tag + run: | + git config user.name "GitHub Actions" + git config user.email "github-actions@users.noreply.github.com" + git tag ${PKG_VERSION} + git push origin ${PKG_VERSION} + - name: Copy SOURCES and SPEC file run: | cp packaging/pkg.spec.in ~/rpmbuild/SPECS/${PKG_NAME}.spec @@ -63,13 +72,6 @@ jobs: ~/rpmbuild/RPMS/ ~/rpmbuild/SRPMS/ - - name: Push Git Tag - run: | - git config user.name "GitHub Actions" - git config user.email "github-actions@users.noreply.github.com" - git tag ${PKG_VERSION} - git push origin ${PKG_VERSION} - - name: Create GitHub Release uses: softprops/action-gh-release@v2 if: github.ref_type == 'tag'