Remove legacy hybrid instructions (#17) #40
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 | |
pull_request: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
deployments: write | |
pull-requests: write | |
name: Publish to Cloudflare Pages | |
steps: | |
# https://github.com/cloudflare/pages-action/issues/16#issuecomment-1398478711 | |
- name: Comment deploy start | |
if: github.event_name != 'push' | |
uses: mshick/add-pr-comment@v2 | |
with: | |
message-id: cloudflare-deploy | |
message: | | |
### <span aria-hidden="true">π§</span> Deploy Preview building... | |
| Name | Link | | |
|---------------------------------|------------------------| | |
|<span aria-hidden="true">π¨</span> Latest commit | ${{ github.sha }} | | |
|<span aria-hidden="true">π</span> Latest deploy log | ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set Node.js 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- run: yarn install --frozen-lockfile | |
- run: yarn export | |
- name: Publish to Cloudflare Pages | |
id: cloudflare | |
uses: cloudflare/pages-action@v1 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
projectName: 'unownhash' | |
directory: out | |
- name: Comment deploy url | |
if: github.event_name != 'push' | |
uses: mshick/add-pr-comment@v2 | |
with: | |
message-id: cloudflare-deploy | |
message: | | |
### <span aria-hidden="true">β </span> Deploy Preview ready! | |
| Name | Link | | |
|---------------------------------|------------------------| | |
|<span aria-hidden="true">π¨</span> Latest commit | ${{ github.sha }} | | |
|<span aria-hidden="true">π</span> Latest deploy log | ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | | |
|<span aria-hidden="true">π</span> Deploy Preview Url | [${{ steps.cloudflare.outputs.url }}](${{ steps.cloudflare.outputs.url }}) | | |
|<span aria-hidden="true">π³</span> Environment | ${{ steps.cloudflare.outputs.environment }} | |