Skip to content

Commit

Permalink
Merge pull request #79 from ecmwf/feature/cd
Browse files Browse the repository at this point in the history
Add CD
  • Loading branch information
dtip authored Jul 31, 2023
2 parents 314d698 + bd6b88e commit b74fc79
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 62 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: cd

on:
push:
tags:
- '**'

jobs:
deploy:
uses: ecmwf-actions/reusable-workflows/.github/workflows/create-package.yml@v2
secrets: inherit
16 changes: 4 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
# Trigger the workflow on push to master or develop, except tag creation
push:
branches:
- "master"
- "develop"
- 'master'
- 'develop'
tags-ignore:
- "**"
- '**'

# Trigger the workflow on pull request
pull_request: ~
Expand All @@ -27,6 +27,7 @@ jobs:
uses: ecmwf-actions/downstream-ci/.github/workflows/downstream-ci.yml@main
with:
eckit: ecmwf/eckit@${{ github.event.pull_request.head.sha || github.sha }}
codecov_upload: true
secrets: inherit

# Run CI of private downstream packages on self-hosted runners
Expand Down Expand Up @@ -73,12 +74,3 @@ jobs:
repository: private-downstream-ci
event_type: downstream-ci-hpc
payload: '{"eckit": "ecmwf/eckit@${{ github.event.pull_request.head.sha || github.sha }}"}'

codecov:
name: code-coverage
if: ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }}
uses: ./.github/workflows/reusable-ci.yml
with:
eckit: ecmwf/eckit@${{ github.event.pull_request.head.sha || github.sha }}
codecov: true
secrets: inherit
22 changes: 0 additions & 22 deletions .github/workflows/reusable-ci-hpc.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/reusable-ci.yml

This file was deleted.

0 comments on commit b74fc79

Please sign in to comment.