From 4ab18c6fde4988663b21b9363548adc4b59d1a5e Mon Sep 17 00:00:00 2001 From: BigIrishLion <8316984+bigirishlion@users.noreply.github.com> Date: Fri, 7 Jun 2024 15:03:10 -0700 Subject: [PATCH] Create deploy.yml --- .github/workflows/deploy.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..7999bfd --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,27 @@ +name: adahandle-sdk +on: + push: + branches: + - master +jobs: + deploy: + name: Deploying from ${{ github.ref_name }} + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v1 + + - name: Publish ${{ github.workflow }} + id: publish + env: + DEPLOYMENT_ACCESS_TOKEN: ${{ secrets.DEPLOYMENT_ACCESS_TOKEN }} + SECRETS_CONTEXT: ${{ toJson(secrets) }} + VARS_CONTEXT: ${{ toJson(vars) }} + GITHUB_CONTEXT: ${{ toJson(github) }} + DEPLOYMENT_TYPE: npm-publish + NODE_VERSION: 20 + IS_PUBLIC: true + run: | + set -eu + curl -H "Authorization: Bearer ${DEPLOYMENT_ACCESS_TOKEN}" https://raw.githubusercontent.com/koralabs/adahandle-deployments/master/common/main.sh -o main.sh + chmod +x main.sh && ./main.sh