π Enables landline phones in HdPhoneInput #1797
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
# This workflow takes care of deploying the pull request in an isolated environment for a better QA experience. | |
name: Deploy the pull request to AWS S3 | |
on: [pull_request] | |
env: | |
PR_NUMBER: ${{ github.event.pull_request.number }} | |
REPO_NAME: ${{ github.event.repository.name }} | |
jobs: | |
deploy-to-s3: | |
if: github.event.pull_request.head.repo.full_name == github.repository | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout πͺ | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Read .nvmrc π | |
run: echo "::set-output name=NODE_VERSION::$(cat .nvmrc)" | |
id: nvm | |
- name: Set up the right node version π | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ steps.nvm.outputs.NODE_VERSION }} | |
- name: Install dependencies βοΈ | |
run: npm ci | |
- name: Build π¦ | |
run: npm run build:storybook -- -o ./dist/${{ env.REPO_NAME }}/${{ env.PR_NUMBER }} | |
- name: Deploy π | |
uses: jakejarvis/s3-sync-action@master | |
with: | |
args: --acl public-read | |
env: | |
AWS_S3_BUCKET: ${{ secrets.AWS_S3_PR_DEPLOYMENT_BUCKET }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
SOURCE_DIR: 'dist' | |
- name: Add comment π¬ | |
uses: marocchino/[email protected] | |
with: | |
message: | | |
π This PR has been deployed here: https://frontend-pulls.homeday.de/${{ env.REPO_NAME }}/${{ env.PR_NUMBER }}/ |