Deploy branchh fix

This commit is contained in:
Ben Allfree 2024-09-06 03:04:20 -07:00
parent 453c89be2b
commit 1e9c29f0aa
3 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,6 @@ name: Publish Dashboard to Cloudflare Pages
on:
push:
paths:
- .github/workflows/publish-dashboard.yaml
- packages/dashboard/**
env:
@ -34,7 +33,8 @@ jobs:
- name: Prepare build
run: |
pnpm i
cd packages/dashboard
pnpm lint
cd dashboard
pnpm build
- name: Expose git commit data
@ -53,7 +53,7 @@ jobs:
wranglerVersion: '3'
- name: Discord feature branch notification
if: github.ref_name != 'master'
if: github.ref_name != 'v0/main'
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master
@ -61,7 +61,7 @@ jobs:
args: '**DASHBOARD PREVIEW** ${{ steps.deployment.outputs.url }} was generated by ${{ github.actor }} in [${{ env.GIT_COMMIT_SHORT_SHA }}](https://github.com/${{ github.repository}}/commit/${{ github.sha }}) on [${{ github.repository}}#${{ github.ref_name }}](https://github.com/${{ github.repository}}/tree/${{ github.ref_name }}) with memo `${{ env.GIT_COMMIT_MESSAGE_SUBJECT }}`'
- name: Discord live branch notification
if: github.ref_name == 'master'
if: github.ref_name == 'v0/main'
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master

View File

@ -53,7 +53,7 @@ jobs:
wranglerVersion: '3'
- name: Discord feature branch notification
if: github.ref_name != 'master'
if: github.ref_name != 'v0/main'
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master
@ -61,7 +61,7 @@ jobs:
args: '**LANDER PREVIEW** ${{ steps.deployment.outputs.url }} was generated by ${{ github.actor }} in [${{ env.GIT_COMMIT_SHORT_SHA }}](https://github.com/${{ github.repository}}/commit/${{ github.sha }}) on [${{ github.repository}}#${{ github.ref_name }}](https://github.com/${{ github.repository}}/tree/${{ github.ref_name }}) with memo `${{ env.GIT_COMMIT_MESSAGE_SUBJECT }}`'
- name: Discord live branch notification
if: github.ref_name == 'master'
if: github.ref_name == 'v0/main'
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master

View File

@ -53,7 +53,7 @@ jobs:
wranglerVersion: '3'
- name: Discord feature branch notification
if: github.ref_name != 'master'
if: github.ref_name != 'v0/main'
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master
@ -61,7 +61,7 @@ jobs:
args: '**SUPERADMIN PREVIEW** ${{ steps.deployment.outputs.url }} was generated by ${{ github.actor }} in [${{ env.GIT_COMMIT_SHORT_SHA }}](https://github.com/${{ github.repository}}/commit/${{ github.sha }}) on [${{ github.repository}}#${{ github.ref_name }}](https://github.com/${{ github.repository}}/tree/${{ github.ref_name }}) with memo `${{ env.GIT_COMMIT_MESSAGE_SUBJECT }}`'
- name: Discord live branch notification
if: github.ref_name == 'master'
if: github.ref_name == 'v0/main'
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master