mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +02:00
feat: host install & upload script
This commit is contained in:
3 files changed
+334
-1
No files matched your search
@@ -1,4 +1,4 @@
|
||||
name: "Build"
|
||||
name: "Build palera1n"
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
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'
|
||||
Reference in new issue
Block a user