Use date utils on events page #8
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: "Staging - Frontend" | |
on: | |
push: | |
branches: | |
- develop | |
paths: | |
- 'frontend/**' | |
jobs: | |
deploy-frontend: | |
name: "Deploy Frontend" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Send webhook to Coolify" | |
run: | | |
curl --request GET '${{ secrets.COOLIFY_FRONTEND_STAGING_WEBHOOK }}' --header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}' | |
- name: "Send webhook to Discord" | |
uses: sarisia/actions-status-discord@v1 | |
if: always() | |
with: | |
webhook: ${{ secrets.DISCORD_STAGING_WEBHOOK_URL }} | |
nocontext: true | |
username: "kilobyte-bot" | |
avatar_url: "https://avatars.githubusercontent.com/u/98578253?s=200&v=4" | |
title: "Frontend Deployment to Staging" | |
description: "Frontend code has been pushed to the `develop` branch, triggering a new build for deployment to the staging environment." |