Updated ci.yml

This commit is contained in:
netkas 2024-09-20 19:29:48 -04:00
parent 798fe9e797
commit 3640befdcc

View file

@ -71,7 +71,7 @@ jobs:
name: ncc-deb name: ncc-deb
path: ${{ env.DEB_FILE }} path: ${{ env.DEB_FILE }}
test: test-install:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
@ -92,7 +92,7 @@ jobs:
run: | run: |
sudo php build/INSTALL --auto sudo php build/INSTALL --auto
upload: upload-release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
if: github.event_name == 'release' && github.event.action == 'created' if: github.event_name == 'release' && github.event.action == 'created'
@ -111,17 +111,15 @@ jobs:
path: build path: build
- name: Upload redist.zip to release - name: Upload redist.zip to release
uses: actions/upload-release-asset@v1 uses: softprops/action-gh-release@v1
with: with:
upload_url: ${{ github.event.release.upload_url }} files: build/redist.zip
asset_path: build/redist.zip env:
asset_name: redist.zip GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
asset_content_type: application/zip
- name: Upload ncc.deb to release - name: Upload ncc.deb to release
uses: actions/upload-release-asset@v1 uses: softprops/action-gh-release@v1
with: with:
upload_url: ${{ github.event.release.upload_url }} files: build/${{ env.DEB_FILE }}
asset_path: build/${{ env.DEB_FILE }} env:
asset_name: ncc.deb GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
asset_content_type: application/vnd.debian.binary-package