mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-16 01:35:50 +00:00
Test new GH-pages deploy CI
This commit is contained in:
29
.github/workflows/link-checker-pr.yml
vendored
29
.github/workflows/link-checker-pr.yml
vendored
@@ -58,21 +58,28 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: dactyl_style_checker -q > out/style_report.txt
|
run: dactyl_style_checker -q > out/style_report.txt
|
||||||
|
|
||||||
- name: Deploy preview to gh-pages
|
## old version, deprecated
|
||||||
uses: sauloxd/review-apps@v1.3.3
|
# - name: Deploy preview to gh-pages
|
||||||
with:
|
# uses: sauloxd/review-apps@v1.3.3
|
||||||
build-cmd: "echo 'Using existing build'"
|
# with:
|
||||||
branch: "gh-pages"
|
# build-cmd: "echo 'Using existing build'"
|
||||||
dist: "out"
|
# branch: "gh-pages"
|
||||||
slug: "pr-preview"
|
# dist: "out"
|
||||||
|
# slug: "pr-preview"
|
||||||
|
|
||||||
- name: Get short SHA6
|
# new deploy system. TODO: delete folders from gh-pages when PRs are closed
|
||||||
id: slug
|
- name: Deploy to gh-pages
|
||||||
run: echo "::set-output name=sha6::$(echo ${{ github.event.pull_request.head.sha }} | cut -c1-6)"
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./out
|
||||||
|
destination_dir: ./pr-preview/${{ github.head_ref }}
|
||||||
|
|
||||||
- name: Summarize Output
|
- name: Summarize Output
|
||||||
uses: unsplash/comment-on-pr@master
|
uses: unsplash/comment-on-pr@master
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
msg: "${{ env.LINKREPORT }}\n\nPreview: https://${{ github.repository_owner }}.github.io/${{ github.event.pull_request.base.repo.name }}/pr-preview/${{ github.head_ref }}/${{steps.slug.outputs.sha6}}\n\n[Style Report](https://${{ github.repository_owner }}.github.io/${{ github.event.pull_request.base.repo.name }}/pr-preview/${{ github.head_ref }}/${{steps.slug.outputs.sha6}}/style_report.txt)"
|
msg: "${{ env.LINKREPORT }}\n\nPreview: https://${{ github.repository_owner }}.github.io/${{ github.event.pull_request.base.repo.name }}/pr-preview/${{ github.head_ref }}/\n\n[Style Report](https://${{ github.repository_owner }}.github.io/${{ github.event.pull_request.base.repo.name }}/pr-preview/${{ github.head_ref }}/style_report.txt)"
|
||||||
|
## Old URLs for review-apps version:
|
||||||
|
# msg: "${{ env.LINKREPORT }}\n\nPreview: https://${{ github.repository_owner }}.github.io/${{ github.event.pull_request.base.repo.name }}/pr-preview/${{ github.head_ref }}/${{steps.slug.outputs.sha6}}\n\n[Style Report](https://${{ github.repository_owner }}.github.io/${{ github.event.pull_request.base.repo.name }}/pr-preview/${{ github.head_ref }}/${{steps.slug.outputs.sha6}}/style_report.txt)"
|
||||||
|
|||||||
Reference in New Issue
Block a user