Skip to content

Test issue 40#

Test issue 40# #7

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Test issue 40#
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
workflow_dispatch:
env:
TZ: "Asia/Shanghai"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: restore timestamps
uses: chetan/git-restore-mtime-action@v2
- name: SFTP uploader v2.0.4
uses: wangyucode/[email protected]
with:
host: ${{ secrets.HOST }}
port: 22
username: ${{ secrets.USERNAME }}
privateKey: ${{ secrets.SERVER_KEY }}
localDir: "."
remoteDir: "/tmp/test/"
dryRun: false
exclude: ".git,node_modules,not-remove,dist/*,*.json"
- name: SFTP uploader v2.0.3
uses: wangyucode/[email protected]
with:
host: ${{ secrets.HOST }}
port: 22
username: ${{ secrets.USERNAME }}
privateKey: ${{ secrets.SERVER_KEY }}
localDir: "."
remoteDir: "/tmp/test/"
dryRun: false
exclude: "**/.git,**/node_modules,**/not-remove,**/dist/*,**/*.json"