diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 243a673..8e26f67 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -23,43 +23,34 @@ jobs: with: node-version: '22' # match your project - # - name: Install dependencies - # run: npm ci + - name: Install dependencies + run: npm ci - # - name: Build Astro project - # run: npm run build + - name: Build Astro project + run: npm run build - # - name: Deploy dist to dist-trixie - # run: | - # # Configure Git - # git config user.name "github-actions[bot]" - # git config user.email "github-actions[bot]@users.noreply.github.com" - - # # Create temporary branch - # git checkout --orphan temp-build + - name: Deploy dist to dist-trixie + run: | + # Configure Git + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + + # Create temporary branch + git checkout --orphan temp-build - # # Clean it - # git rm -rf . - - # # Commit and force push - # git add dist + # Clean it + git rm -rf . + + # Commit and force push + git add dist - # git branch - # git commit -m "Update dist/ [skip ci]" - # git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/Signum/workaround-astro-starlight.git temp-build:dist-trixie --force + git branch + git commit -m "Update dist/ [skip ci]" + git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/Signum/workaround-astro-starlight.git temp-build:dist-trixie --force - #- name: Trigger deployment webhook - # run: | - # curl '${{ secrets.COOLIFY_DEPLOY_WEBHOOK }}' --header "Authorization: Bearer ${{ secrets.COOLIFY_DEPLOY_TOKEN }}" - - - - run: | - env - date + - name: Trigger deployment webhook + run: | curl -v "$DEPLOY_WEBHOOK" --header "Authorization: Bearer $DEPLOY_TOKEN" - echo .......................... - curl -v "https://coolify1.workaround.org/api/v1/deploy?uuid=t8o4owgkwc480gkc4oskcwwc&force=false" --header "Authorization: Bearer 11|turB1lbqKhOQpU96xrkD2UQLDvdJUVyPl9LkY5tP0ebc05d2" - env: DEPLOY_WEBHOOK: ${{ secrets.COOLIFY_DEPLOY_WEBHOOK }} DEPLOY_TOKEN: ${{ secrets.COOLIFY_DEPLOY_TOKEN }}