ci ffs
This commit is contained in:
parent
818adae366
commit
e67f77264b
1 changed files with 22 additions and 31 deletions
53
.github/workflows/build-and-deploy.yml
vendored
53
.github/workflows/build-and-deploy.yml
vendored
|
|
@ -23,43 +23,34 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: '22' # match your project
|
node-version: '22' # match your project
|
||||||
|
|
||||||
# - name: Install dependencies
|
- name: Install dependencies
|
||||||
# run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
# - name: Build Astro project
|
- name: Build Astro project
|
||||||
# run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
# - name: Deploy dist to dist-trixie
|
- name: Deploy dist to dist-trixie
|
||||||
# run: |
|
run: |
|
||||||
# # Configure Git
|
# Configure Git
|
||||||
# git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
# git config user.email "github-actions[bot]@users.noreply.github.com"
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
|
||||||
# # Create temporary branch
|
# Create temporary branch
|
||||||
# git checkout --orphan temp-build
|
git checkout --orphan temp-build
|
||||||
|
|
||||||
# # Clean it
|
# Clean it
|
||||||
# git rm -rf .
|
git rm -rf .
|
||||||
|
|
||||||
# # Commit and force push
|
# Commit and force push
|
||||||
# git add dist
|
git add dist
|
||||||
|
|
||||||
# git branch
|
git branch
|
||||||
# git commit -m "Update dist/ [skip ci]"
|
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 push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/Signum/workaround-astro-starlight.git temp-build:dist-trixie --force
|
||||||
|
|
||||||
#- name: Trigger deployment webhook
|
- name: Trigger deployment webhook
|
||||||
# run: |
|
run: |
|
||||||
# curl '${{ secrets.COOLIFY_DEPLOY_WEBHOOK }}' --header "Authorization: Bearer ${{ secrets.COOLIFY_DEPLOY_TOKEN }}"
|
|
||||||
|
|
||||||
|
|
||||||
- run: |
|
|
||||||
env
|
|
||||||
date
|
|
||||||
curl -v "$DEPLOY_WEBHOOK" --header "Authorization: Bearer $DEPLOY_TOKEN"
|
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:
|
env:
|
||||||
DEPLOY_WEBHOOK: ${{ secrets.COOLIFY_DEPLOY_WEBHOOK }}
|
DEPLOY_WEBHOOK: ${{ secrets.COOLIFY_DEPLOY_WEBHOOK }}
|
||||||
DEPLOY_TOKEN: ${{ secrets.COOLIFY_DEPLOY_TOKEN }}
|
DEPLOY_TOKEN: ${{ secrets.COOLIFY_DEPLOY_TOKEN }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue