Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
publish docs directly to cloudflare
  • Loading branch information
jtarchie authored May 22, 2023
1 parent c831034 commit 57da320
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
run: bundle exec rake build
env:
OPENWEATHER_API_KEY: ${{ secrets.OPENWEATHER_API_KEY }}
- name: commit files
run: |
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
git config user.name "GitHub Actions Bot"
git config user.email "Github Actions Bot <[email protected]>"
# Stage the file, commit and push
git add -A
git commit -m "generated docs from github action"
git push origin main
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 945954ae6af55e6e4af004fb7772fdc5
projectName: followthesnow
directory: docs
# Optional: Enable this if you want to have GitHub Deployments triggered
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 57da320

Please sign in to comment.