diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index c33e75c..f6ff550 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -46,25 +46,22 @@ jobs: - name: install tailwindcss run: npm install -g tailwindcss + - name: list frontend dir (pre build) [DEBUG] + run: ls -la ./frontend/dist + - name: build frontend working-directory: ./frontend/ run: | trunk build --release - - name: commit frontend release build - run: | - git config --global user.name "GitHub Action" - git config --global user.email "actions@github.com" - git add frontend/dist -f - git diff --staged --quiet || (git commit -m "release: frontend build ${{ github.sha }} [skip ci]" && git push) - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: list frontend dir (pre upload) [DEBUG] + run: ls -la ./frontend/dist - # - name: upload frontend artifacts - # uses: actions/upload-artifact@v4 - # with: - # name: frontend-artifacts - # path: ./frontend/dist + - name: upload frontend artifacts + uses: actions/upload-artifact@v4 + with: + name: frontend-artifacts + path: ./frontend/dist - name: run tests run: | @@ -77,16 +74,21 @@ jobs: - name: checkout uses: actions/checkout@v4 - # - name: download frontend artifacts - # uses: actions/download-artifact@v4 - # with: - # name: frontend-artifacts + - name: remove ./frontend/dist dir + run: | + rm -rf ./frontend/dist - # - name: display structure of downloaded files - # run: ls -R - # working-directory: ./frontend/dist + - name: download frontend artifacts + uses: actions/download-artifact@v4 + with: + name: frontend-artifacts + path: ./frontend/dist + + - name: List downloaded artifacts + run: ls -la ./frontend/dist - uses: shuttle-hq/deploy-action@main with: + allow-dirty: "true" deploy-key: ${{ secrets.SHUTTLE_API_KEY }} working-directory: . diff --git a/frontend/dist/index.html b/frontend/dist/index.html index 81c7895..19833cf 100644 --- a/frontend/dist/index.html +++ b/frontend/dist/index.html @@ -4,18 +4,18 @@