From aa6dca302f94c9c7d6bc0016f7ba96d41622c28a Mon Sep 17 00:00:00 2001 From: netkas Date: Sun, 13 Oct 2024 12:50:03 -0400 Subject: [PATCH] Added upload-dcs stage --- .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 4a8eded..a2da786 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-docs: + 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 to GitHub 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