Skip to content

Commit

Permalink
fix: attempt to make codecov push only occur on release publish
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi committed Apr 15, 2021
1 parent ec21ce8 commit ac5c221
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml → .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CI"
name: "CI/CD"

on:
push:
Expand Down Expand Up @@ -53,6 +53,8 @@ jobs:
runs-on: ubuntu-latest
needs: "test"
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
outputs:
new-release-published: ${{ steps.release.outputs.new-release-published }}
steps:
- name: "Checkout"
uses: actions/checkout@v2
Expand All @@ -70,6 +72,7 @@ jobs:
useRollingCache: true

- name: "Release"
id: "release"
uses: codfish/semantic-release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit ac5c221

Please sign in to comment.