developer pride ai tooling #297
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
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
deployments: write | |
name: Deploy to Cloudflare | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Download Tailwind | |
run: make tailwind-download | |
- name: Build Tailwind | |
run: make tailwind-build | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: "latest" | |
extended: true | |
- name: Build | |
run: make build | |
- name: Publish Page | |
uses: cloudflare/pages-action@v1 # https://github.com/cloudflare/pages-action | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
projectName: v01-hugo | |
directory: public | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} |