mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +02:00
34 lines
745 B
YAML
34 lines
745 B
YAML
name: "Upload install script"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- ".github/workflows/script.yml"
|
|
- "install.sh"
|
|
|
|
jobs:
|
|
upload:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Move
|
|
run: |
|
|
mkdir -p dist
|
|
cp install.sh dist/
|
|
|
|
- name: Upload artifact
|
|
uses: wangyucode/sftp-upload-action@v3
|
|
with:
|
|
host: ${{ secrets.NICKCHAN_FTP_HOST }}
|
|
port: ${{ secrets.NICKCHAN_FTP_PORT }}
|
|
username: palera1n
|
|
password: ${{ secrets.NICKCHAN_FTP_PASS }}
|
|
forceUpload: true
|
|
dryRun: false
|
|
localDir: 'dist/'
|
|
remoteDir: '/www/static.palera.in/scripts'
|