From 1e2ca205d8342b5d531ea175d2586c8e0a094ef9 Mon Sep 17 00:00:00 2001 From: Pete Stenger Date: Fri, 4 Oct 2024 14:07:07 -0500 Subject: [PATCH] i think build-mdbook is the issue --- .github/actions/composite/action.yml | 0 .github/workflows/deploy-test.yml | 41 +++++++++++++--------------- 2 files changed, 19 insertions(+), 22 deletions(-) create mode 100644 .github/actions/composite/action.yml diff --git a/.github/actions/composite/action.yml b/.github/actions/composite/action.yml new file mode 100644 index 000000000..e69de29bb diff --git a/.github/workflows/deploy-test.yml b/.github/workflows/deploy-test.yml index 7d59a1102..0c01f6d93 100644 --- a/.github/workflows/deploy-test.yml +++ b/.github/workflows/deploy-test.yml @@ -19,12 +19,26 @@ jobs: token: ${{ secrets.WORKFLOW_PAT }} submodules: true fetch-depth: 0 - - name: Intermediate step - run: | - ls + - name: Build site + uses: ./.github/actions/build-astro + with: + working-directory: ${{ env.CI_WORKING_DIR }} + build-directory: ${{ env.CI_BUILD_DIR }} + cache-directory: ${{ env.CI_CACHE_DIR }} + - name: Deploy to Cloudflare Pages + if: github.actor != 'dependabot[bot]' + uses: cloudflare/pages-action@v1 + with: + apiToken: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + projectName: ${{ vars.CLOUDFLARE_PROJECT_NAME_SIGPWNY }} + gitHubToken: ${{ secrets.GITHUB_TOKEN }} + workingDirectory: ${{ env.CI_WORKING_DIR }} + directory: ${{ env.CI_BUILD_DIR }} + - name: Save scheduled discord pings run: | - echo -e "name: \"workflow\"\non: workflow_dispatch4" > .github/workflows/date.yml + echo -e "name: \"workflow\"\non: workflow_dispatch5" > .github/workflows/date.yml # Note: the following account information will not work on GHES!! git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" @@ -35,21 +49,4 @@ jobs: # uses: ./.github/actions/build-mdbook # with: # book-directory: pwnyctf - - # - name: Build site - # uses: ./.github/actions/build-astro - # with: - # working-directory: ${{ env.CI_WORKING_DIR }} - # build-directory: ${{ env.CI_BUILD_DIR }} - # cache-directory: ${{ env.CI_CACHE_DIR }} - # - name: Deploy to Cloudflare Pages - # if: github.actor != 'dependabot[bot]' - # uses: cloudflare/pages-action@v1 - # with: - # apiToken: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN }} - # accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - # projectName: ${{ vars.CLOUDFLARE_PROJECT_NAME_SIGPWNY }} - # gitHubToken: ${{ secrets.GITHUB_TOKEN }} - # workingDirectory: ${{ env.CI_WORKING_DIR }} - # directory: ${{ env.CI_BUILD_DIR }} - \ No newline at end of file + \ No newline at end of file