Skip to content

Smoother lobby protection #126

Smoother lobby protection

Smoother lobby protection #126

# This is a basic workflow to help you get started with Actions
name: Deploy on Minecraft server
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [dev]
workflow_dispatch:
# 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 "deploy"
deploy:
# 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:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 10
# Deploys to the server
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Test
run: |
echo $RELEASE_VERSION
echo ${{ env.RELEASE_VERSION }}
- name: deploy
uses: swznd/sftp-deploy@master
with:
host: ${{ secrets.SFTP_IP }}
port: ${{ secrets.SFTP_PORT }}
user: ${{ secrets.SFTP_USER }}
password: ${{ secrets.SFTP_PASSWORD }}
remote_path: /world/
ignore: .github/, .vscode/, .gitignore, **/.gitignore,**/.git/**, /advancements/, /data/, /DIM-1/, /DIM1/, /entities/, /generated/, /playerdata/, /poi/, /region/ /stats/, /level.dat, /level.dat_old, /session.lock, /uid.dat, /docs/, /generators/