Skip to content

ci: Add CI/CD workflows #2

ci: Add CI/CD workflows

ci: Add CI/CD workflows #2

Workflow file for this run

name: CD
on:
push:
branches: [master]
tags-ignore: ["v*"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: andrewscwei/actions/node-build@v2
- name: Test
run: npm test
- name: Deploy to GitHub pages
uses: andrewscwei/actions/gh-pages-deploy@v2
with:
deploy-path: build
notify:
name: Notify
needs: [build]

Check failure on line 26 in .github/workflows/cd.yaml

View workflow run for this annotation

GitHub Actions / CD

Invalid workflow file

The workflow is not valid. .github/workflows/cd.yaml (Line: 26, Col: 13): Job 'notify' depends on unknown job 'build'.
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- uses: andrewscwei/telegram-action@v1
with:
success: ${{ needs.build.result == 'success' }}
cancelled: ${{ needs.build.result == 'cancelled' }}
bot-token: ${{ secrets.TELEGRAM_DEVOPS_BOT_TOKEN }}
chat-id: ${{ secrets.TELEGRAM_DEVOPS_CHAT_ID }}