diff --git a/.github/workflows/deploy_gh_pages.yaml b/.github/workflows/deploy_gh_pages.yaml index 39789996e..6c7a157d7 100644 --- a/.github/workflows/deploy_gh_pages.yaml +++ b/.github/workflows/deploy_gh_pages.yaml @@ -3,6 +3,7 @@ on: push: branches: - development + - actions-check jobs: build: runs-on: ubuntu-20.04 @@ -19,25 +20,15 @@ jobs: name: Set up .NET Core SDK with: dotnet-version: 6.0.x - - name: Cache node modules - uses: actions/cache@v4 - env: - cache-name: cache-node-modules - with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- + - name: Install .NET dependencies + run: dotnet restore + - name: Build GraphQL Node + run: dotnet build --configuration Release --no-restore - name: Install dependencies run: yarn global add graphql @graphql-inspector/cli - name: Build GraphQL Schema run: | - dotnet restore - dotnet build - dotnet run --project NineChronicles.Headless.Executable -- \ + dotnet run --configuration Release --no-restore --no-build --project NineChronicles.Headless.Executable -- \ --graphql-server \ --graphql-port 30000 \ --graphql-host localhost \ @@ -64,8 +55,8 @@ jobs: run: cp Docs/resources/landing.html public/index.html - name: Copy GraphQL Schema to deploy run: cp schema.graphql public/schema.graphql - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./public + # - name: Deploy + # uses: peaceiris/actions-gh-pages@v3 + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # publish_dir: ./public