Slimmed down deploy.yml
Some checks failed
Build and Deploy DAVE | DMGs Site / deploy (push) Failing after 38s
Some checks failed
Build and Deploy DAVE | DMGs Site / deploy (push) Failing after 38s
This commit is contained in:
@@ -12,31 +12,19 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: '18'
|
|
||||||
|
|
||||||
- name: Install pnpm
|
|
||||||
uses: pnpm/action-setup@v4
|
|
||||||
with:
|
|
||||||
version: 8
|
|
||||||
|
|
||||||
- name: Cache pnpm store
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: ~/.pnpm-store
|
|
||||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-pnpm-
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --no-frozen-lockfile
|
run: |
|
||||||
|
export PATH="/home/deploy/.local/share/fnm/aliases/default/bin:$PATH"
|
||||||
|
corepack enable
|
||||||
|
pnpm install --no-frozen-lockfile
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm run build
|
run: |
|
||||||
|
export PATH="/home/deploy/.local/share/fnm/aliases/default/bin:$PATH"
|
||||||
|
corepack enable
|
||||||
|
SKIP_KEYSTATIC=true pnpm run build
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: |
|
run: |
|
||||||
rm -rf /var/www/dave-dmg.de/blog/*
|
rsync -a --delete dist/ /var/www/dave-dmg.de/blog/
|
||||||
cp -r dist/* /var/www/dave-dmg.de/blog/
|
echo "Deployed at $(date)"
|
||||||
|
|||||||
Reference in New Issue
Block a user