Skip to content

Commit

Permalink
Create main.yml (github actions)
Browse files Browse the repository at this point in the history
  • Loading branch information
cichy380 committed Jan 15, 2024
1 parent ece394d commit 4f09660
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: speech-to-text CI/CD

on:
push:
branches:
- main

jobs:
frontend:
name: Build and deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install dependencies
run: npm ci

- name: Build Angular App
run: npm run ci:frontend

- name: Publish GitHub Page
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist/frontend
enable_jekyll: true

backend:
name: Trigger deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Call to Rendercom
uses: johnbeynon/[email protected]
with:
service-id: ${{ secrets.RENDER_SERVICE_ID }}
api-key: ${{ secrets.RENDER_API_KEY }}

0 comments on commit 4f09660

Please sign in to comment.