Skip to content

Commit

Permalink
i think build-mdbook is the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
reteps committed Oct 4, 2024
1 parent ad9a2a9 commit 1e2ca20
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
Empty file.
41 changes: 19 additions & 22 deletions .github/workflows/deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 }}


0 comments on commit 1e2ca20

Please sign in to comment.