parent
bb1ce601be
commit
1abedb6c2d
1 changed files with 0 additions and 35 deletions
|
|
@ -10,38 +10,3 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Node.js
|
|
||||||
uses: https://code.forgejo.org/actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: "22"
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: npm ci
|
|
||||||
|
|
||||||
- name: Build Astro project
|
|
||||||
run: npm run build
|
|
||||||
|
|
||||||
- name: Deploy dist to dist-${{ env.FORGEJO_REF_NAME }}
|
|
||||||
run: |
|
|
||||||
git config user.name "forgejo-actions[bot]"
|
|
||||||
git config user.email "forgejo-actions[bot]@users.noreply.local"
|
|
||||||
|
|
||||||
git checkout --orphan temp-build
|
|
||||||
git rm -rf .
|
|
||||||
|
|
||||||
git add dist
|
|
||||||
git commit -m "Update dist/ [skip ci]"
|
|
||||||
|
|
||||||
# git push \
|
|
||||||
# https://x-access-token:${{ secrets.GITHUB_TOKEN }}@${{ github.server_url#https:// }}/{{ github.repository }} \
|
|
||||||
# temp-build:dist-${{ env.FORGEJO_REF_NAME }} \
|
|
||||||
# --force
|
|
||||||
|
|
||||||
- name: Trigger deployment webhook
|
|
||||||
env:
|
|
||||||
DEPLOY_WEBHOOK: ${{ secrets.COOLIFY_STAGE_DEPLOY_WEBHOOK }}
|
|
||||||
DEPLOY_TOKEN: ${{ secrets.COOLIFY_STAGE_DEPLOY_TOKEN }}
|
|
||||||
run: |
|
|
||||||
curl -v "$DEPLOY_WEBHOOK" \
|
|
||||||
--header "Authorization: Bearer $DEPLOY_TOKEN"
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue