-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
Since the latest change, uploading files doesnt seem to work. It deletes them fine but doesnt upload.
name: build site
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build_site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install
- name: Use cache
uses: actions/cache@v4
with:
# See here for caching with `yarn` https://github.com/actions/cache/blob/main/examples.md#node---yarn or you can leverage caching with actions/setup-node https://github.com/actions/setup-node
path: |
~/.npm
${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: build site
run: npm run build
- name: Copy folder content recursively to remote
uses: garygrossgarten/github-action-scp@release
with:
local: out
remote: site
host: ${{ secrets.SSH_HOST }}
port: ${{ secrets.SSH_PORT }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_PASSWORD }}
concurrency: 5
rmRemote: true
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels