repo: fixed readme badges position #168
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@prod | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: "Checkout repo" | |
| uses: actions/checkout@v4 | |
| - name: "Clone prod" | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| ref: prod | |
| path: prod | |
| - name: "Setup Bun" | |
| uses: oven-sh/setup-bun@v2 | |
| - name: "Install dependencies" | |
| run: bun install | |
| - name: Build | |
| run: bun run build | |
| - name: Clean up previous build | |
| run: | | |
| rm -rf ./prod/assets/* | |
| - name: Copy production build | |
| run: | | |
| rsync -a dist/* ./prod | |
| - name: Publish | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| cwd: "prod" | |
| add: "." | |
| author_name: github-actions[bot] | |
| author_email: 41898282+github-actions[bot]@users.noreply.github.com | |
| message: "Automatic commit, run id: ${{ github.run_id }}" | |
| push: true | |