✨ Make pycord_rest_bot optional #419
This file contains hidden or 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
| #file: noinspection SpellCheckingInspection | |
| name: CI/CD | |
| on: | |
| push: | |
| branches: [ "main", "dev" ] | |
| # Publish semver tags as releases. | |
| tags: [ 'v*.*.*' ] | |
| pull_request: | |
| branches: ["dev"] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| quality: | |
| uses: ./.github/workflows/quality.yaml | |
| docker: | |
| needs: quality | |
| permissions: | |
| contents: read | |
| packages: write | |
| id-token: write | |
| uses: ./.github/workflows/docker.yaml | |
| deploy: | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/dev' | |
| needs: docker | |
| uses: ./.github/workflows/deploy.yaml | |
| secrets: inherit |