⚡️ Optimize using new macro commands #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🚀 Deploy datapack | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
inputs: | |
forceUpload: | |
type: boolean | |
description: "Force uploading all files" | |
removeExtraFilesOnServer: | |
type: boolean | |
description: "Remove extra files on server" | |
default: true | |
jobs: | |
check: | |
uses: ./.github/workflows/check.yml | |
deploy: | |
needs: check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: chetan/git-restore-mtime-action@v2 | |
- uses: wangyucode/sftp-upload-action@v2.0.2 | |
with: | |
host: servers.minemakers.net | |
port: 5657 | |
username: ${{ secrets.SFTP_USERNAME }} | |
password: ${{ secrets.SFTP_PASSWORD }} | |
compress: true | |
localDir: '.' | |
remoteDir: './shulker-rush/datapacks/shulker-rush/' | |
exclude: '.git*/**,.gitattributes,.editorconfig,README.md,LICENSE' | |
removeExtraFilesOnServer: true |