Testing Workflow

This commit is contained in:
Christian Tosta
2025-04-18 05:41:36 -03:00
parent 035e9bf005
commit 5cf34fb6e7

View File

@@ -30,6 +30,8 @@ jobs:
- name: Checkout source code - name: Checkout source code
uses: actions/checkout@v3 uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Create source tarball - name: Create source tarball
run: | run: |
@@ -44,6 +46,13 @@ jobs:
build/CPackConfig.cmake) \ build/CPackConfig.cmake) \
" >> $GITHUB_ENV " >> $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 - name: Copy SOURCES and SPEC file
run: | run: |
cp packaging/pkg.spec.in ~/rpmbuild/SPECS/${PKG_NAME}.spec cp packaging/pkg.spec.in ~/rpmbuild/SPECS/${PKG_NAME}.spec
@@ -63,13 +72,6 @@ jobs:
~/rpmbuild/RPMS/ ~/rpmbuild/RPMS/
~/rpmbuild/SRPMS/ ~/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 - name: Create GitHub Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
if: github.ref_type == 'tag' if: github.ref_type == 'tag'