Merge pull request #67 from smplrspace/next #34
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
name: Deploy docs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
deployments: write | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: sarisia/actions-status-discord@v1 | |
with: | |
webhook: ${{ secrets.DISCORD_WEBHOOK_DEV }} | |
notimestamp: true | |
nodetail: true | |
title: "Started: ${{ github.workflow}} - ${{ github.ref_name }}" | |
description: Triggered by ${{ github.actor }} | |
color: 0x50545b | |
- name: Wait for Cloudflare Pages build | |
uses: WalshyDev/cf-pages-await@v1 | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN_PAGES }} | |
accountId: "4955c8c28610ecabc384d84a20458a53" | |
project: "docs" | |
# write deplpyment status to github | |
githubToken: ${{ secrets.PRIVATE_ACCESS_TOKEN_DEPLOYMENTS }} | |
- name: Send Discord notification | |
uses: sarisia/actions-status-discord@v1 | |
if: always() | |
with: | |
webhook: ${{ secrets.DISCORD_WEBHOOK_DEV }} | |
title: ${{ github.workflow}} - ${{ github.ref_name }} | |
notimestamp: true |