Skip to content

Commit

Permalink
ci: add environment
Browse files Browse the repository at this point in the history
  • Loading branch information
mishamyrt committed Nov 5, 2023
1 parent d6d3873 commit 77b3d4c
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
build-font:
uses: ./.github/workflows/build.yaml
build-preview:
environment:
name: PR preview
url: https://preview--lilex.netlify.app
needs: build-font
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -49,14 +52,3 @@ jobs:
build_directory: preview/dist
install_command: "echo Skipping installing the dependencies"
build_command: "echo Skipping building the web files"

- name: Format comment
env:
DEPLOY_URL: ${{ steps.deploy.outputs.NETLIFY_PREVIEW_URL }}
run: echo "✅ Preview is [published]($DEPLOY_URL)" > message.md

- uses: mshick/add-pr-comment@v2
with:
message-path: message.md


0 comments on commit 77b3d4c

Please sign in to comment.