Skip to content

Commit

Permalink
feat: add discord notify
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidrezaramzani committed Mar 1, 2024
1 parent f44a55b commit 35a6840
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,17 @@ jobs:
run: |
npm i -g @liara/cli@5
liara deploy --app="iran-locations-api" --port=3000 --api-token="$LIARA_TOKEN" --no-app-logs
notify:
name: Discord Notification
runs-on: ubuntu-latest
needs:
- deploy
if: ${{ always() }} #

steps:
- name: Notify
uses: nobrayner/discord-webhook@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }}
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const isProd = process.env.NODE_ENV === "production";
const nextConfig = {
reactStrictMode: true,
assetPrefix: isProd ? "https://iran-locations-api.liara.run/" : "",
assetPrefix: isProd ? process.env.WEBSITE_URL : "",
};

module.exports = nextConfig;
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"@mui/icons-material": "^5.6.2",
"@mui/material": "^5.6.1",
"@mui/styles": "^5.6.2",
"husky": "^9.0.11",
"lodash": "^4.17.21",
"next": "12.1.5",
"nextjs-cors": "^2.1.1",
Expand All @@ -31,6 +30,6 @@
"@commitlint/config-conventional": "^19.0.3",
"eslint": "8.13.0",
"eslint-config-next": "12.1.5",
"husky": "^8.0.0"
"husky": "^9.0.11"
}
}

0 comments on commit 35a6840

Please sign in to comment.