Skip to content

Commit

Permalink
chore: publish preview URL to github PR
Browse files Browse the repository at this point in the history
  • Loading branch information
meysam81 committed Mar 31, 2024
1 parent bc2cc4b commit f6a54d9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ jobs:
permissions:
id-token: write
pages: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -118,7 +119,8 @@ jobs:
- id: deployment
name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
- name: Deploy to Netlify
- id: netlify
name: Deploy to Netlify
uses: jsmrcaga/action-netlify-deploy@v2.1.0
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
Expand All @@ -127,6 +129,14 @@ jobs:
build_command: echo Skipping building the web files
build_directory: site
install_command: echo Skipping installing the dependencies
- name: Publish preview URL
run: meysam81/comment-pr@main
with:
title: "# Preview URL"
content: |
Please visit this link to preview the changes:
${{ steps.netlify.outputs.NETLIFY_PREVIEW_URL }}
token: ${{ secrets.GITHUB_TOKEN }}

lychee:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ secrets

# Local Netlify folder
.netlify
.envrc

0 comments on commit f6a54d9

Please sign in to comment.