Skip to content

Commit

Permalink
ci: add deploy job to ci workflow (#2)
Browse files Browse the repository at this point in the history
PR Close #2
  • Loading branch information
grantwforsythe authored Mar 6, 2024
1 parent b232aa3 commit ca19a1a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -24,7 +23,6 @@ jobs:
shell: bash

test:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -48,7 +46,6 @@ jobs:
CYPRESS_AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -62,3 +59,17 @@ jobs:
- name: Lint Packages
run: npm run lint
shell: bash

deploy:
runs-on: ubuntu-latest
needs: [build, test, lint]
if: github.ref == 'refs/heads/main'
steps:
- name: Deploy to Render
env:
DEPLOY_HOOK_URL: ${{ secrets.RENDER_DEPLOY_HOOK_URL}}
run: curl "$DEPLOY_HOOK_URL"
shell: bash

- name: Release
run: npm run release --ci
1 change: 1 addition & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"git": {
"requireBranch": "main",
"commitMessage": "chore(release): v${version}"
},
"github": {
Expand Down

0 comments on commit ca19a1a

Please sign in to comment.