Skip to content

Fix bot channel check #68

Fix bot channel check

Fix bot channel check #68

Workflow file for this run

on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
types: [opened, reopened, synchronize]
workflow_call:
workflow_dispatch:
name: ci-build
env:
DOTNET_VERSION: 8.0.x
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/container-build
with:
registry: ghcr.io
registry-path: ${{ github.repository_owner }}/discord-bot
registry-username: ${{ github.actor }}
registry-password: ${{ secrets.GITHUB_TOKEN }}
push-image: ${{ github.ref_type == 'branch' && github.ref_protected && github.event_name != 'pull_request' }}
deploy-production:
runs-on: ubuntu-latest
needs: build
if: ${{ github.ref_type == 'branch' && github.event_name != 'pull_request' && github.ref_name == 'master' }}
environment: production
steps:
- name: Call deployment webhook
shell: bash
env:
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
run: |
curl -X POST -d "" "$WEBHOOK_URL"