Skip to content

Commit

Permalink
Refer to jenkinsci/.github#48 as canonical workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed May 4, 2021
1 parent 384ef9d commit 2494781
Showing 1 changed file with 1 addition and 40 deletions.
41 changes: 1 addition & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,46 +385,7 @@ If you have a `.github/dependabot.yml`, it is a good idea to add
interval: daily
```

Now create `.github/workflows/cd.yaml` as follows:

```yaml
name: cd
on:
workflow_dispatch:
check_run:
types:
- completed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Verify CI status
uses: jenkins-infra/verify-ci-status-action@v1.1.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Drafter
uses: release-drafter/release-drafter@v5.13.0
with:
name: next
tag: next
version: next
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check out
uses: actions/checkout@v2.3.4
with:
fetch-depth: 0
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Release
uses: jenkins-infra/jenkins-maven-cd-action@v1.1.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
```
Finally create `.github/workflows/cd.yaml` as a copy of [this template](https://github.com/jenkinsci/.github/blob/master/workflow-templates/cd.yaml).

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

0 comments on commit 2494781

Please sign in to comment.