Skip to content

Commit

Permalink
Merge pull request #17 from WillyTonkas/not-feature/back/ci-cd
Browse files Browse the repository at this point in the history
fix(workflow): Fixed CI and CD workflows.
FranCalveyra authored Dec 26, 2024
2 parents 3955e4e + f60bcdc commit 72a01cb
Showing 2 changed files with 11 additions and 9 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
name: CD Workflow

# TODO: Make the binary for the workflow to compile correctly
on:
pull_request:
types:
- closed
push:
branches:
- main
release:
types: [created]

jobs:
build-and-deploy:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:

9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -2,16 +2,15 @@ name: CI Workflow

on:
pull_request:
branches:
- main
- dev
branches: ["main", "dev"]
push:
branches-ignore:
- main
branches-ignore: ["main"]

jobs:
lint-and-test:
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- name: Checkout code

0 comments on commit 72a01cb

Please sign in to comment.