Update the wandering trades pack #20
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 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
# Zip up the data packs and upload to the game server | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
# Check out the repo | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
# Run the build, compressing all data packs | |
- run: bash ./scripts/build.sh | |
# Upload to the game server | |
- uses: wangyucode/[email protected] | |
with: | |
host: ${{ secrets.SFTP_HOST }} | |
port: ${{ secrets.SFTP_PORT }} | |
username: ${{ secrets.SFTP_USER }} | |
password: ${{ secrets.SFTP_PASSWORD }} | |
localDir: ./build | |
remoteDir: /world/datapacks | |
forceUpload: true | |
removeExtraFilesOnServer: true |