forked from dita-ot/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Edit website release PR workflow step names and PR description
Signed-off-by: Jarno Elovirta <[email protected]>
- Loading branch information
Showing
1 changed file
with
10 additions
and
10 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 |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
workflow_dispatch: | ||
inputs: | ||
dita-ot-version: | ||
description: 'Source DITA-OT version' | ||
description: 'DITA-OT version' | ||
required: true | ||
docs-tag: | ||
description: 'Docs tag' | ||
|
@@ -47,12 +47,12 @@ jobs: | |
run: | | ||
curl -sL https://github.com/dita-ot/org.dita-ot.html/archive/refs/heads/${{ env.WEBSITE_PLUGIN_BRANCH }}.zip -o org.dita-ot.html.zip | ||
- name: Cache stable DITA-OT | ||
- name: Cache render DITA-OT | ||
uses: actions/cache@v2 | ||
with: | ||
path: dita-ot-${{ env.DITA_OT_VERSION }} | ||
key: ${{ runner.os }}-dita-ot-${{ env.DITA_OT_VERSION }} | ||
- name: Download stable DITA-OT | ||
- name: Download render DITA-OT | ||
run: | | ||
if [ ! -d "dita-ot-${{ env.DITA_OT_VERSION }}" ]; then | ||
curl -sL https://github.com/dita-ot/dita-ot/releases/download/${{ env.DITA_OT_VERSION }}/dita-ot-${{ env.DITA_OT_VERSION }}.zip -o dita-ot-${{ env.DITA_OT_VERSION }}.zip | ||
|
@@ -62,7 +62,7 @@ jobs: | |
fi | ||
dita-ot-${{ env.DITA_OT_VERSION }}/bin/dita install org.dita-ot.html.zip --force -v | ||
- name: Download source DITA-OT | ||
- name: Download release DITA-OT | ||
run: | | ||
curl -sL https://github.com/dita-ot/dita-ot/releases/download/$VERSION/dita-ot-$VERSION.zip -o dita-ot-$VERSION.zip | ||
unzip dita-ot-$VERSION.zip -d src-dita-ot | ||
|
@@ -74,28 +74,28 @@ jobs: | |
./gradlew site \ | ||
-PditaHome=$DITA_HOME \ | ||
-PoutputDir=$WEBSITE_DIR/${{ env.RELEASE }} \ | ||
-PditaHomeSrc=${{ env.DITA_OT_DEV }} \ | ||
-PditaHomeSrc=${{ env.RELEASE_DITA_OT }} \ | ||
-PnoCommitMeta=true \ | ||
--info --stacktrace --no-daemon | ||
env: | ||
VERSION: ${{ github.event.inputs.dita-ot-version }} | ||
WEBSITE_DIR: ${{ github.workspace }}/website | ||
DITA_HOME: ${{ github.workspace }}/dita-ot-${{ env.DITA_OT_VERSION }} | ||
DITA_OT_DEV: ${{ github.workspace }}/src-dita-ot/dita-ot-${{ github.event.inputs.dita-ot-version }} | ||
RELEASE_DITA_OT: ${{ github.workspace }}/src-dita-ot/dita-ot-${{ github.event.inputs.dita-ot-version }} | ||
|
||
- name: Create release PR | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
branch: release/${{ github.event.inputs.dita-ot-version }} | ||
title: 'Release ${{ env.RELEASE }}' | ||
title: 'Update site for ${{ github.event.inputs.dita-ot-version }}' | ||
body: | | ||
Release website for ${{ env.RELEASE }}. | ||
Update DITA-OT ${{ github.event.inputs.dita-ot-version }} docs to `/${{ env.RELEASE }}`. | ||
Built with: | ||
Built from commits: | ||
* dita-ot/docs@${{ env.GITHUB_SHA_SHORT }} (${{ github.event.inputs.docs-tag }}) | ||
* dita-ot/dita-ot (${{ github.event.inputs.dita-ot-version }}) | ||
* dita-ot/org.dita-ot.html (${{ env.WEBSITE_PLUGIN_BRANCH }}) | ||
commit-message: "Deploy dita-ot/docs@${{ env.GITHUB_SHA_SHORT }} to '${{ env.RELEASE }}' docs" | ||
commit-message: 'Update ‘${{ env.RELEASE }}’ docs for ${{ github.event.inputs.dita-ot-version }}' | ||
committer: 'DITA-OT Bot <[email protected]>' | ||
signoff: true | ||
token: ${{ secrets.COMMITTER_TOKEN }} | ||
|