From 650c084b627a1d000dfba8380feb8d5ee42a4c06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Urban=20Kova=C4=8D?= Date: Wed, 8 Nov 2023 10:36:27 +0100 Subject: [PATCH] Added Github deploy action --- .github/workflows/deploy.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..3089ab0 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,32 @@ +name: Deploy Website + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 16 + + - name: Install node_modules + run: npm install + + - name: Build + run: npm run build + + - name: Deploy website + env: + APILLON_API_KEY: ${{ secrets.APILLON_API_KEY }} + APILLON_API_SECRET: ${{ secrets.APILLON_API_SECRET }} + WEBSITE_UUID: ${{ secrets.WEBSITE_UUID }} + run: npx --yes @apillon/cli hosting deploy-website ./build --uuid $WEBSITE_UUID --key $APILLON_API_KEY --secret $APILLON_API_SECRET