From 8f4711577517e9612c178027eac6f7740af8f7b6 Mon Sep 17 00:00:00 2001 From: Jeremy Huard Date: Mon, 9 Feb 2026 14:50:46 +0100 Subject: [PATCH] added dispatch condition in yml file --- .github/workflows/ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cec1b15..96432e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,7 +66,7 @@ jobs: build: name: Deploy/Release (main) - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main' ) }} # Set up URLs for GitHub Pages report environment: @@ -99,7 +99,7 @@ jobs: - name: Run buildtool uses: matlab-actions/run-build@v2 with: - tasks: test # change to compile + tasks: compile # change to compile # Configure GitHub Pages to accept your artifact uploads - name: Setup Pages @@ -113,12 +113,12 @@ jobs: with: path: results # Upload results - # # Upload compiled CTF file to deploy Web App - # - name: Upload CTF file - # uses: actions/upload-artifact@v6 - # with: - # name: WebApp_CTF - # path: WebAppArchive/*.ctf + # Upload compiled CTF file to deploy Web App + - name: Upload CTF file + uses: actions/upload-artifact@v6 + with: + name: WebApp_CTF + path: WebAppArchive/*.ctf # Publish reports to GitHub Pages so they can be viewed in a browser - name: Deploy to GitHub Pages