Following up on the comment by @ForwardEd, I too believe the use of a pulley is benefitial to your problem, especially considering its excellent ability to change the direction of a force. In the below image, two possible setups are visualized using pulleys.
For the following scenarios multiple simplifications are made, seeing as they are all dependent on your objective (e.g., how heavy is the object to be lifted and how long should it last?), your budget (what can you afford in terms of material) and more. Examples of what is not considerd is the effects introduced by the catenary curve of the rope or the elasticity of the rope.
In the first scenario, which is also the most ideal one, we assume you have access to a (more or less) rigid structure, e.g., a wall or a larger tree (with lower sway motion given an equal load). You may then attach the pulley to the rigid structure in the same height as the rope is attached to the tree, giving an equal amplitude of the bottom part of the rope and the sway of the tree.
In the second scenario, it is assumed that tree is standing by itself. If connecting the rope with a pulley placed at the ground, the result is similar to scenario 1. However, since the sway motion of the tree now has to be decomposed to the direction of the rope, a sway motion of 1m will not result in a 1m change in the rope. How much is lost is dependent on the distance from the tree to the pulley, and can be computed using e.g. the Pythagorean theorem (but keep in mind that we then assume a rope with no stretch or catenary curve, which in reality will dominate as the distance becomes large). To redirect the motion of the ground pulley as vertical, I have chosen to visualize a possibility where another pulley attached to a smaller structure is used, but here there are many possible options.