Update CI workflow for main branch and release events
This commit is contained in:
parent
6a4e3de7a3
commit
17f95d619f
1 changed files with 3 additions and 2 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
@ -58,7 +58,7 @@ jobs:
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ncc-build
|
name: ncc-build
|
||||||
path: build/
|
path: build/release/net.nosial.configlib.ncc
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: build
|
needs: build
|
||||||
|
@ -75,10 +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: Upload release artifact to GitHub
|
- name: Upload release artifact to GitHub
|
||||||
run: |
|
run: |
|
||||||
BUILD_FILE="build/release/net.nosial.configlib.ncc"
|
BUILD_FILE="ncc-build/net.nosial.configlib.ncc"
|
||||||
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 \
|
||||||
|
|
Loading…
Add table
Reference in a new issue