get billable status from project instead of task, api does not confor… #101
Workflow file for this run
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: "Build and deploy" | |
| on: | |
| - "push" | |
| - "workflow_dispatch" | |
| jobs: | |
| build: | |
| name: "Build 🔨" | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: "actions/checkout@v6" | |
| - uses: "actions/setup-node@v6" | |
| with: | |
| node-version: "24" | |
| cache: "npm" | |
| - run: "npm clean-install" | |
| - run: "npm run build" | |
| - uses: "actions/upload-artifact@v7" | |
| with: | |
| name: "dist" | |
| path: "dist" | |
| deploy-staging: | |
| name: "Deploy 🚜️" | |
| runs-on: "ubuntu-latest" | |
| if: "startsWith(github.ref, 'refs/tags/')" | |
| needs: | |
| - "build" | |
| steps: | |
| - name: "update apt cache" | |
| run: "sudo apt-get update" | |
| - name: "install rclone" | |
| run: "sudo apt-get -y install rclone" | |
| - uses: "actions/download-artifact@v8" | |
| with: | |
| name: "dist" | |
| path: "dist" | |
| - name: "obfuscate password for rclone" | |
| run: 'echo "RCLONE_FTP_PASS=$(echo ${{ secrets.HETZNER_FTP_PASS}} | rclone obscure -)" >> $GITHUB_ENV' | |
| - name: "sync webspace" | |
| run: "rclone sync dist :ftp:" | |
| env: | |
| RCLONE_FTP_HOST: "${{ vars.HETZNER_FTP_HOST }}" | |
| RCLONE_FTP_USER: "${{ secrets.HETZNER_FTP_USER }}" | |
| RCLONE_FTP_EXPLICIT_TLS: "true" | |
| RCLONE_VERBOSE: 1 |