Add SRPM Artifact To Releases

* Upload SRPMs that are created
* Update actions/checkout to v3

Closes #614

Signed-off-by: Michael L. Young <myoung@ciq.co>
This commit is contained in:
Michael L. Young
2022-12-22 22:21:50 -05:00
parent b63ad7bba6
commit 792c3574b7
5 changed files with 17 additions and 14 deletions

View File

@@ -9,7 +9,7 @@ jobs:
if: ${{ github.repository_owner == 'hcpng' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive

View File

@@ -14,7 +14,7 @@ jobs:
matrix: # Pin go version to the one(s) below.
go: [ '1.17' ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup go ${{ matrix.go }}
uses: actions/setup-go@v3

View File

@@ -22,7 +22,7 @@ jobs:
echo "SRC=${GITHUB_REF}" >> $GITHUB_ENV
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
@@ -74,23 +74,23 @@ jobs:
- name: Run rpm build script
run: ./mockbuild.sh ${{ env.VERSION }}
- name: Upload EL8 RPM
- name: Upload EL8 RPMs
uses: actions/upload-artifact@v3
with:
name: warewulf-${{ env.VERSION }}-${{ env.RELEASE }}.el8.x86_64.rpm
path: warewulf-${{ env.VERSION }}-${{ env.RELEASE }}.el8.x86_64.rpm
name: warewulf-${{ env.VERSION }}-${{ env.RELEASE }}.el8
path: warewulf-${{ env.VERSION }}-${{ env.RELEASE }}.el8.*.rpm
- name: Upload EL7 RPM
- name: Upload EL7 RPMs
uses: actions/upload-artifact@v3
with:
name: warewulf-${{ env.VERSION }}-${{ env.RELEASE }}.el7.x86_64.rpm
path: warewulf-${{ env.VERSION }}-${{ env.RELEASE }}.el7.x86_64.rpm
name: warewulf-${{ env.VERSION }}-${{ env.RELEASE }}.el7
path: warewulf-${{ env.VERSION }}-${{ env.RELEASE }}.el7.*.rpm
- name: Upload openSUSE Leap 15.3 RPM
- name: Upload openSUSE Leap 15.3 RPMs
uses: actions/upload-artifact@v3
with:
name: warewulf-${{ env.VERSION }}-${{ env.RELEASE }}.suse.lp153.x86_64.rpm
path: warewulf-${{ env.VERSION }}-${{ env.RELEASE }}.suse.lp153.x86_64.rpm
name: warewulf-${{ env.VERSION }}-${{ env.RELEASE }}.suse.lp153
path: warewulf-${{ env.VERSION }}-${{ env.RELEASE }}.suse.lp153.*.rpm
- name: Upload Assets To Release
if: "!github.event.release.prerelease"

View File

@@ -23,7 +23,7 @@ jobs:
matrix:
go: [ '1.17', '1.18', '1.19' ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install gpgme
run: sudo apt-get install libgpgme-dev