Skip to content

Commit

Permalink
Remove build-rpm job due to CentOS 7 mirror resolution issues
Browse files Browse the repository at this point in the history
  • Loading branch information
royroyee authored Jul 9, 2024
1 parent f442b62 commit 39050ff
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,30 @@ jobs:
name: alpamon-${{ github.ref_name }}-py3-none-any.whl
path: dist/alpamon-${{ github.ref_name }}-py3-none-any.whl

build-rpm:
needs: [build-and-test]
runs-on: ubuntu-latest
container:
image: centos:7
steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: |
yum install -y python3 python3-pip rpm-build
- name: Build RPM package
run: |
python3 setup.py bdist_rpm
- name: Upload RPM artifact
uses: actions/upload-artifact@v3
with:
name: alpamon-${{ github.ref_name }}-1.noarch.rpm
path: dist/alpamon-${{ github.ref_name }}-1.noarch.rpm
# build-rpm:
# needs: [build-and-test]
# runs-on: ubuntu-latest
# container:
# image: centos:7
# steps:
# - uses: actions/checkout@v3

# - name: Install dependencies
# run: |
# yum install -y python3 python3-pip rpm-build

# - name: Build RPM package
# run: |
# python3 setup.py bdist_rpm

# - name: Upload RPM artifact
# uses: actions/upload-artifact@v3
# with:
# name: alpamon-${{ github.ref_name }}-1.noarch.rpm
# path: dist/alpamon-${{ github.ref_name }}-1.noarch.rpm

release:
needs: [ build-wheel, build-rpm ]
needs: [ build-wheel]
runs-on: ubuntu-latest
container:
image: alpacanetworks/alpacon-cli:latest
Expand All @@ -70,10 +70,10 @@ jobs:
with:
name: alpamon-${{ github.ref_name }}-py3-none-any.whl

- name: Download rpm artifact
uses: actions/download-artifact@v3
with:
name: alpamon-${{ github.ref_name }}-1.noarch.rpm
# - name: Download rpm artifact
# uses: actions/download-artifact@v3
# with:
# name: alpamon-${{ github.ref_name }}-1.noarch.rpm

- name: List downloaded files
run: ls
Expand All @@ -82,7 +82,7 @@ jobs:
run: |
alpacon login -s ${{ secrets.ALPACON_URL }} -t ${{ secrets.ALPACON_TOKEN }}
alpacon package python upload alpamon-${{ github.ref_name }}-py3-none-any.whl
alpacon package system upload alpamon-${{ github.ref_name }}-1.noarch.rpm
# alpacon package system upload alpamon-${{ github.ref_name }}-1.noarch.rpm



0 comments on commit 39050ff

Please sign in to comment.