Skip to content

Commit

Permalink
make the build work step 2
Browse files Browse the repository at this point in the history
Signed-off-by: gdha <[email protected]>
  • Loading branch information
gdha committed Jun 18, 2024
1 parent 0dacdca commit 241e5c6
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/rpmbuild-of-upgrade-ux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ jobs:
- name: Replace version in RPM spec so correct source is downloaded when building RPM
run: |
cd packaging/Linux
sudo apt install -y ksh
make dist
- name: Upload source archive as artifact
uses: actions/upload-artifact@v4
with:
name: upgrade-ux-${{ github.ref_name }}.tar.gz
path: upgrade-ux-${{ github.ref_name }}.tar.gz
name: upgrade-ux-${{ github.GITHUB_RUN_ID }}.tar.gz
path: upgrade-ux-${{ github.GITHUB_RUN_ID }}.tar.gz

build_rpm:
name: Build .rpm package
Expand All @@ -54,7 +55,7 @@ jobs:
- name: Upload .rpm package as artifact
uses: actions/upload-artifact@v4
with:
name: upgrade-ux-${{ github.ref_name }}-1.${{ env.DIST }}.${{ env.ARCH }}.rpm
name: upgrade-ux-${{ github.GITHUB_RUN_ID }}-1.${{ env.DIST }}.${{ env.ARCH }}.rpm
path: rpmbuild/RPMS/${{ env.ARCH }}/*.rpm

build_deb:
Expand All @@ -66,7 +67,7 @@ jobs:
uses: actions/download-artifact@v4
id: download
with:
name: upgrade-ux-${{ github.ref_name }}-1.${{ env.DIST }}.${{ env.ARCH }}.rpm
name: upgrade-ux-${{ github.GITHUB_RUN_ID }}-1.${{ env.DIST }}.${{ env.ARCH }}.rpm

- name: find .
run: find .
Expand All @@ -81,7 +82,7 @@ jobs:
- name: Upload .deb package as artifact
uses: actions/upload-artifact@v4
with:
name: upgrade-ux-${{ github.ref_name }}-1.${{ env.DIST }}.${{ env.ARCH }}.deb
name: upgrade-ux-${{ github.GITHUB_RUN_ID }}-1.${{ env.DIST }}.${{ env.ARCH }}.deb
path: upgrade-ux*.deb

release:
Expand All @@ -99,6 +100,6 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: |
upgrade-ux-${{ github.ref_name }}.tar.gz/*.tar.gz
upgrade-ux-${{ github.ref_name }}-1.${{ env.DIST }}.${{ env.ARCH }}.rpm/**/*.rpm
upgrade-ux-${{ github.ref_name }}-1.${{ env.DIST }}.${{ env.ARCH }}.deb/**/*.deb
upgrade-ux-${{ github.GITHUB_RUN_ID }}.tar.gz/*.tar.gz
upgrade-ux-${{ github.GITHUB_RUN_ID }}-1.${{ env.DIST }}.${{ env.ARCH }}.rpm/**/*.rpm
upgrade-ux-${{ github.GITHUB_RUN_ID }}-1.${{ env.DIST }}.${{ env.ARCH }}.deb/**/*.deb

0 comments on commit 241e5c6

Please sign in to comment.