Merge pull request #241 from devmount/bugs/240-setlist-presentation-p… #144
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
| # This workflow will do a clean install of node dependencies, | |
| # build the application and deploy it as latest nightly | |
| # as soon as there are pushes to the main branch | |
| name: Build & Deploy (Nightly) | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Use Node.js 20 | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: 20.x | |
| - name: Build app via NPM | |
| run: | | |
| cd frontend/ | |
| printf "VITE_FB_API_KEY=${{ secrets.VUE_APP_FB_API_KEY_DEV }}\nVITE_FB_PROJECT_ID=${{ secrets.VUE_APP_FB_PROJECT_ID_DEV }}" >> .env.production.local | |
| npm install | |
| npm run build | |
| - name: Push Build files to testing environment | |
| uses: burnett01/rsync-deployments@5.2 | |
| with: | |
| switches: -avzr --delete | |
| path: frontend/dist/ | |
| remote_path: ${{ secrets.DEPLOY_PATH_DEV }} | |
| remote_host: ${{ secrets.DEPLOY_HOST }} | |
| remote_port: ${{ secrets.DEPLOY_PORT }} | |
| remote_user: ${{ secrets.DEPLOY_USER }} | |
| remote_key: ${{ secrets.DEPLOY_SSH_KEY }} | |
| remote_key_pass: ${{ secrets.DEPLOY_SSH_PHRASE }} |