Skip to content

🔥 Removed deprecated custom config doc link #114

🔥 Removed deprecated custom config doc link

🔥 Removed deprecated custom config doc link #114

# This is a basic workflow to help you get started with Actions
name: Deploy dev version on glib manager
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [master]
# 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:
local_path: '/datapacks/Glib/'
host: ${{ secrets.SFTP_IP }}
port: ${{ secrets.SFTP_PORT }}
user: ${{ secrets.SFTP_USER }}
password: ${{ secrets.SFTP_PASSWORD }}
remote_path: /datapacks/dev/${{ env.RELEASE_VERSION }}/
ignore: .github/**,.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/