ci ffs
This commit is contained in:
parent
e67f77264b
commit
f2fd6f7043
1 changed files with 20 additions and 20 deletions
40
.github/workflows/build-and-deploy.yml
vendored
40
.github/workflows/build-and-deploy.yml
vendored
|
|
@ -23,30 +23,30 @@ 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: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue