Forms refactoring (#707) #443
This file contains hidden or 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: Deploy DEV | |
| on: | |
| # Trigger the workflow on any push on main branch, | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - 'scripts/**' | |
| - 'README.md' | |
| workflow_dispatch: | |
| concurrency: | |
| group: dist-dev-${{ github.head_ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| deploy_dev: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| cache: 'yarn' | |
| - name: Install | |
| run: | | |
| yarn install | |
| - name: Generate dist | |
| env: | |
| SMARTLOOK_KEY: ${{ secrets.SMARTLOOK_KEY }} | |
| run: | | |
| echo "VITE_SMARTLOOK_KEY=$SMARTLOOK_KEY" > ./src/.env | |
| yarn build | |
| - name: "Check dist dir consistency" | |
| uses: andstor/file-existence-action@v1 | |
| with: | |
| files: "dist/docs/index.html" | |
| allow_failure: true # Makes the Action fail on missing files | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v1 | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
| aws-secret-access-key: ${{ secrets.AWS_ACCESS_PASSWORD }} | |
| aws-region: eu-west-1 | |
| - name: Copy files to the https://dev.merginmaps.com/docs | |
| run: | | |
| aws s3 sync ./dist s3://dev-merginmaps.docs --follow-symlinks --delete | |