build-and-deploy.yml (780B)
1 name: Build and Deploy 2 on: [push] 3 4 permissions: 5 contents: write 6 7 jobs: 8 9 build-and-deploy-app: 10 concurrency: ci-${{ github.ref }} 11 runs-on: ubuntu-latest 12 steps: 13 14 - name: Checkout 15 uses: actions/checkout@v3 16 17 - name: Install and Build 18 run: | 19 sudo apt install -yq ffmpeg 20 echo "BASEURL_APP='\"https://cq.finwo.net/#!\"'" > packages/app/.env 21 npm install 22 npm run build 23 24 - name: Deploy 25 run: | 26 curl -O https://dl.min.io/client/mc/release/linux-amd64/mc 27 sudo install mc /usr/local/bin/ 28 mc alias set target https://s3.finwo.net/ ${{ secrets.S3_KEY }} ${{ secrets.S3_SECRET }} --api S3v4 29 util/s3-mirror-mime.sh packages/app/dist target/website-cq-finwo-net