Skip to content

Commit 2494781

Browse files
committed
Refer to jenkinsci/.github#48 as canonical workflow
1 parent 384ef9d commit 2494781

File tree

1 file changed

+1
-40
lines changed

1 file changed

+1
-40
lines changed

README.md

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -385,46 +385,7 @@ If you have a `.github/dependabot.yml`, it is a good idea to add
385385
interval: daily
386386
```
387387

388-
Now create `.github/workflows/cd.yaml` as follows:
389-
390-
```yaml
391-
name: cd
392-
on:
393-
workflow_dispatch:
394-
check_run:
395-
types:
396-
- completed
397-
jobs:
398-
deploy:
399-
runs-on: ubuntu-latest
400-
steps:
401-
- name: Verify CI status
402-
uses: jenkins-infra/[email protected]
403-
with:
404-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
405-
- name: Release Drafter
406-
uses: release-drafter/[email protected]
407-
with:
408-
name: next
409-
tag: next
410-
version: next
411-
env:
412-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
413-
- name: Check out
414-
uses: actions/[email protected]
415-
with:
416-
fetch-depth: 0
417-
- name: Set up JDK 8
418-
uses: actions/setup-java@v1
419-
with:
420-
java-version: 1.8
421-
- name: Release
422-
uses: jenkins-infra/[email protected]
423-
with:
424-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
425-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
426-
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
427-
```
388+
Finally create `.github/workflows/cd.yaml` as a copy of [this template](https://github.com/jenkinsci/.github/blob/master/workflow-templates/cd.yaml).
428389

429390
Now whenever Jenkins reports a successful build of your default branch,
430391
and at least one pull request had a label indicating it was of interest to users (e.g. `enhancement` rather than `chore`),

0 commit comments

Comments
 (0)