Skip to content

Commit

Permalink
make webhook when deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
NSPC911 committed Nov 6, 2024
1 parent 083c300 commit 8b2d058
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}

deploy:
deploy_page:
needs: format_repo
if: github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'skip-deploy')
runs-on: ubuntu-latest
Expand All @@ -72,9 +72,6 @@ jobs:
with:
path: ./webUI
retention-days: 1

- name: Checkout repository
uses: actions/checkout@v4

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
Expand All @@ -93,6 +90,16 @@ jobs:
curl -X DELETE -H "Authorization: token ${{ secrets.BOT_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/actions/artifacts/$artifact_id
- name: Notify Discord
uses: sarisia/[email protected]
with:
webhook: ${{ secrets.LOG_HOOK }}
title: Page Deployed!
description: "Online at https://becomtweaks.github.io/resource-packs/"
avatar_url: "https://avatars.githubusercontent.com/u/176916861?v=4"
username: "NSPBot911"
nodetail: true

update_server:
needs: format_repo
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8b2d058

Please sign in to comment.