feat: support folder name contain space keyword (#110)
- Rename a workflow job from `deploy artifact` to `test deploy artifact` - Add a new workflow job for copying files to a server ref https://github.com/appleboy/scp-action/issues/85
This commit is contained in:
parent
2cd029d317
commit
82ebdbe3ed
2 changed files with 19 additions and 2 deletions
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
|
@ -86,7 +86,7 @@ jobs:
|
||||||
target: "test"
|
target: "test"
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
name: deploy artifact
|
name: test deploy artifact
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
|
@ -137,3 +137,20 @@ jobs:
|
||||||
port: ${{ secrets.PORT }}
|
port: ${{ secrets.PORT }}
|
||||||
source: ${{ steps.changed-files.outputs.all_changed_files }}
|
source: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||||
target: test
|
target: test
|
||||||
|
|
||||||
|
target:
|
||||||
|
name: test target folder
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: copy file to server
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
key: ${{ secrets.KEY }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
source: tests/a.txt,tests/b.txt
|
||||||
|
target: test foobar
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM ghcr.io/appleboy/drone-scp:1.6.7
|
FROM ghcr.io/appleboy/drone-scp:1.6.8
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
Loading…
Reference in a new issue