From 349970184125a1d21a26431650111628d3121219 Mon Sep 17 00:00:00 2001 From: Zyie <24736175+Zyie@users.noreply.github.com> Date: Fri, 7 Jun 2024 11:47:33 +0100 Subject: [PATCH] add deploy scripts --- .github/workflows/deploy-build.yaml | 23 ++++++++ examples/basic.html | 52 +++++++++++++++++ examples/index.html | 86 +++++++++++++---------------- package.json | 3 +- 4 files changed, 116 insertions(+), 48 deletions(-) create mode 100644 .github/workflows/deploy-build.yaml create mode 100644 examples/basic.html diff --git a/.github/workflows/deploy-build.yaml b/.github/workflows/deploy-build.yaml new file mode 100644 index 0000000..e286f84 --- /dev/null +++ b/.github/workflows/deploy-build.yaml @@ -0,0 +1,23 @@ +name: Deploy Examples + +on: + push: + branches: + - main + +jobs: + release_candidate: + runs-on: ubuntu-latest + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + + - name: Setup Project + uses: ./.github/actions/setup + + - name: Build Project + run: npm run deploy diff --git a/examples/basic.html b/examples/basic.html new file mode 100644 index 0000000..f1b9866 --- /dev/null +++ b/examples/basic.html @@ -0,0 +1,52 @@ + + + + spine-pixi + + + + + + + + + + \ No newline at end of file diff --git a/examples/index.html b/examples/index.html index f1b9866..eab5f69 100644 --- a/examples/index.html +++ b/examples/index.html @@ -1,52 +1,44 @@ + - - - spine-pixi - - - - - - - - \ No newline at end of file diff --git a/package.json b/package.json index 6f42620..63c7729 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,8 @@ "start": "xs serve", "test": "xs test", "types": "xs types", - "watch": "xs watch" + "watch": "xs watch", + "deploy": "xs deploy" }, "dependencies": { "@esotericsoftware/spine-core": "~4.2.45"