Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
DanNixon committed Sep 1, 2024
1 parent 76457ec commit d86d066
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,26 @@ jobs:
run: mdbook build

- name: Publish to Cloudflare Pages
id: publish
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: e532cde53d2aaf233bc8f913f31a325f
command: pages deploy book --project-name=ms-wiki-test

- name: TODO print deployment-url
env:
DEPLOYMENT_URL: ${{ steps.deploy.outputs.deployment-url }}
run: echo $DEPLOYMENT_URL
- name: View context attributes
uses: actions/github-script@v7
with:
script: console.log(context)

- name: Add preview comment to PR
if: github.event_name = "pull_request"
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '✨ you may preview these changes at <${{ steps.publish.outputs.deployment-url }}>'
})

0 comments on commit d86d066

Please sign in to comment.