From 84ad9a9fb36f0be90b3319e791471719523094aa Mon Sep 17 00:00:00 2001 From: netkas Date: Sun, 13 Oct 2024 13:32:34 -0400 Subject: [PATCH] Updated build system --- .github/workflows/ncc_workflow.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/ncc_workflow.yml b/.github/workflows/ncc_workflow.yml index 9baf988..8b623cd 100644 --- a/.github/workflows/ncc_workflow.yml +++ b/.github/workflows/ncc_workflow.yml @@ -526,6 +526,31 @@ jobs: wget https://phar.phpunit.de/phpunit-11.3.phar php phpunit-11.3.phar --configuration phpunit.xml + upload-documentation: + needs: generate-phpdoc + permissions: write-all + runs-on: ubuntu-latest + container: + image: php:8.3 + if: github.event_name == 'release' + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Download documentation artifact + uses: actions/download-artifact@v4 + with: + name: documentation + + - name: Upload documentation artifact to release + uses: softprops/action-gh-release@v1 + with: + files: | + docs/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + upload-artifacts: needs: [release, debug, release-compressed, debug-compressed, release-executable, debug-executable, release-compressed-executable, debug-compressed-executable, test] permissions: write-all