Skip to content

Commit 39fb48f

Browse files
committed
Add HPC test WF
1 parent 5dcb1ab commit 39fb48f

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

.github/cd-config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
builds:
2+
- name: "hpc-build"
3+
type: "hpc"
4+
enabled: true

.github/workflows/dummy-cd.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
name: Dummy CD
22

33
on:
4+
push:
5+
tags:
6+
- 'v?[0-9]+.[0-9]+.[0-9]+'
7+
- 'v?[0-9]+.[0-9]+.[0-9]+-*'
8+
branches:
9+
- '*'
10+
pull_request:
11+
types: [opened, synchronize, reopened, labeled]
412
workflow_dispatch:
513

14+
permissions:
15+
contents: write
16+
617
jobs:
7-
dummy-cd:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- name: Dummy CD
11-
run: echo "Dummy CD"
18+
build-and-release:
19+
if: |
20+
startsWith(github.ref, 'refs/tags/') ||
21+
(github.event.pull_request.base.ref == github.event.repository.default_branch && github.event.label.name == 'approved-for-cd')
22+
uses: ecmwf/reusable-workflows/.github/workflows/main-cd.yml@cd-hpc
23+
with:
24+
ref_name: ${{ github.ref_name }}
25+
secrets: inherit

0 commit comments

Comments
 (0)