From 79c28b5be61bf86a22b6ed90379a4915376f701a Mon Sep 17 00:00:00 2001 From: densogiaichned Date: Fri, 19 Jan 2024 16:07:20 +0100 Subject: [PATCH] ci: Upload to twinpack --- .github/workflows/{ci.yml => cicd.yml} | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) rename .github/workflows/{ci.yml => cicd.yml} (50%) diff --git a/.github/workflows/ci.yml b/.github/workflows/cicd.yml similarity index 50% rename from .github/workflows/ci.yml rename to .github/workflows/cicd.yml index 6efbe31..ec7c43a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/cicd.yml @@ -1,4 +1,4 @@ -name: CI +name: CI/CD on: push: branches: @@ -26,9 +26,28 @@ jobs: username: ${{ secrets.ACTIONS_ZGWK_USERNAME }} password: ${{ secrets.ACTIONS_ZGWK_PASSWORD }} - name: Upload *.library - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: rplc path: | **/*.compiled-library - **/*.library \ No newline at end of file + **/*.library + + cd: + name: CD + needs: ci + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + + runs-on: ubuntu-latest + + steps: + - uses: actions/download-artifact@v4 + id: download-rplc + with: + name: rplc + + - uses: Zeugwerk/twinpack-action@v0.4.0 + with: + username: ${{ secrets.ACTIONS_ZGWK_USERNAME }} + password: ${{ secrets.ACTIONS_ZGWK_PASSWORD }} + path: ${{ steps.download-rplc.outputs.download-path}} \ No newline at end of file