-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refer to jenkinsci/.github#48 as canonical workflow
- Loading branch information
Showing
1 changed file
with
1 addition
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Release Drafter | ||
uses: release-drafter/[email protected] | ||
with: | ||
name: next | ||
tag: next | ||
version: next | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Check out | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Release | ||
uses: jenkins-infra/[email protected] | ||
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`), | ||
|