From 0d9dbc0ab08d8ce5a35d0a948fcf893e08f7acfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Israelson?= <57065102+israpps@users.noreply.github.com> Date: Thu, 1 Jul 2021 15:00:30 -0300 Subject: [PATCH] OPL Builds Backup --- .github/workflows/compilation.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index a8ea6608d..3aeaa7f4d 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -177,3 +177,21 @@ jobs: OPNPS2LD-VARIANTS-${{ steps.version.outputs.version }}.7z OPNPS2LD.7z OPNPS2LD-VARIANTS.7z + + - name: Upload pre-release to Mega + if: github.ref == 'refs/heads/master' + uses: Difegue/action-megacmd@master + with: + args: put -c OPNPS2LD.7z /OPL/Pre-Release/${{ steps.version.outputs.version }}/ + env: + USERNAME: ${{ secrets.USERNAME }} + PASSWORD: ${{ secrets.PASSWORD }} + + - name: Upload release to Mega + if: startsWith(github.ref, 'refs/tags/v') + uses: Difegue/action-megacmd@master + with: + args: put -c OPNPS2LD.7z /OPL/Release/${{ steps.version.outputs.version }}/ + env: + USERNAME: ${{ secrets.USERNAME }} + PASSWORD: ${{ secrets.PASSWORD }}