Update CI workflow for main branch and release events

This commit is contained in:
netkas 2024-09-17 13:58:20 -04:00
parent 9bc1f86e25
commit 45b7879186

View file

@ -75,6 +75,11 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: ncc-build name: ncc-build
path: ncc-build
- name: List files
run: |
ls -R
- name: Get the release upload URL - name: Get the release upload URL
id: get_release id: get_release
@ -87,7 +92,7 @@ jobs:
- name: Upload release artifact to GitHub - name: Upload release artifact to GitHub
run: | run: |
BUILD_FILE="ncc-build/net.nosial.configlib.ncc" BUILD_FILE="ncc-build/ncc-build/net.nosial.configlib.ncc" # Update path based on actual structure
if [ -f "$BUILD_FILE" ]; then if [ -f "$BUILD_FILE" ]; then
echo "Uploading build artifact to GitHub release" echo "Uploading build artifact to GitHub release"
curl \ curl \