-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
publish docs directly to cloudflare
- Loading branch information
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |