Use node_modules/.bin/next instead of bunx #33
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 to Clever Cloud | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: oven-sh/setup-bun@v2 | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| - run: bun install | |
| - name: Typecheck | |
| run: bun run typecheck | |
| - name: Test | |
| run: bun test | |
| deploy: | |
| needs: check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Push to Clever Cloud | |
| env: | |
| CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }} | |
| CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }} | |
| CLEVER_GIT_URL: ${{ secrets.CLEVER_GIT_URL }} | |
| run: | | |
| CLEVER_HOST=$(echo "$CLEVER_GIT_URL" | sed 's|https://||' | cut -d'/' -f1) | |
| git credential-store --file=/tmp/git-creds store <<EOF | |
| protocol=https | |
| host=${CLEVER_HOST} | |
| username=${CLEVER_TOKEN} | |
| password=${CLEVER_SECRET} | |
| EOF | |
| git config credential.helper "store --file=/tmp/git-creds" | |
| git push "${CLEVER_GIT_URL}" main:master --force |