Skip to content

Commit d9c9645

Browse files
committed
Change to peaceiris/actions-gh-pages
1 parent a74a66a commit d9c9645

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

.github/workflows/generate-release-notes.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88
required: true
99
default: 'v2.13'
1010

11-
permissions:
12-
contents: write
13-
pull-requests: write
14-
1511
jobs:
1612
build-and-commit:
1713
runs-on: ubuntu-latest
@@ -32,7 +28,7 @@ jobs:
3228
run: gem install asciidoctor
3329

3430
- name: Install Pandoc
35-
run: sudo apt-get update && sudo apt-get install -y pandoc
31+
uses: r-lib/actions/setup-pandoc@v2
3632

3733
- name: Create release notes build directory
3834
run: mkdir release-notes-build
@@ -48,7 +44,7 @@ jobs:
4844
exit 1
4945
fi
5046
51-
asciidoctor -v -o "$OUTPUT_FILE" "$INPUT_FILE"
47+
asciidoctor -o "$OUTPUT_FILE" "$INPUT_FILE"
5248
5349
- name: Convert HTML to GitHub-Flavored Markdown
5450
run: |
@@ -62,17 +58,11 @@ jobs:
6258
--output "$MARKDOWN_FILE" \
6359
"$HTML_FILE"
6460
65-
- name: Commit files
66-
run: |
67-
git config --local user.email "github-actions[bot]@users.noreply.github.com"
68-
git config --local user.name "github-actions[bot]"
69-
git add release-notes-build/
70-
git commit -m "Add changes"
71-
72-
- name: Push HTML and Markdown to release-notes-build branch
73-
uses: ad-m/github-push-action@v0.8.0
61+
- name: Deploy to release-notes-build branch
62+
uses: peaceiris/actions-gh-pages@v4
7463
with:
7564
github_token: ${{ secrets.GITHUB_TOKEN }}
76-
branch: release-notes-build
77-
force: true
78-
directory: release-notes-build
65+
publish_dir: ./release-notes-build
66+
publish_branch: release-notes-build
67+
force_orphan: true
68+
commit_message: "Generate Release Notes for ${{ inputs.version }}"

0 commit comments

Comments
 (0)