cd: move production deploy back to tags, add staging #74
Workflow file for this run
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
name: share-preview-url | |
on: | |
pull_request: | |
types: | |
- opened | |
- ready_for_review | |
jobs: | |
comment-on-pr: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: get dest dir | |
id: get_dest_dir | |
run: echo "DEST_DIR=inline/preview-$GITHUB_HEAD_REF" >> "$GITHUB_OUTPUT" | |
- name: share preview url as PR comment | |
uses: unsplash/comment-on-pr@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
msg: "This branch has been deployed to s3 / cloudfront.\n\n✅ Preview URL: https://cdn.smileidentity.com/${{ steps.get_dest_dir.outputs.DEST_DIR }}/js/script.js" | |