From 5d47f053bf916d13884b3a6448031002796a4e4a Mon Sep 17 00:00:00 2001 From: Pablo Diehl Date: Thu, 24 Oct 2024 16:46:58 -0300 Subject: [PATCH] fix(templates/nuxt3-static-boilerplate): add missing workflow Add missing workflow files. --- .../.github/workflows/main.yml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 templates/nuxt/nuxt3-static-boilerplate/.github/workflows/main.yml diff --git a/templates/nuxt/nuxt3-static-boilerplate/.github/workflows/main.yml b/templates/nuxt/nuxt3-static-boilerplate/.github/workflows/main.yml new file mode 100644 index 00000000..9e2dbb20 --- /dev/null +++ b/templates/nuxt/nuxt3-static-boilerplate/.github/workflows/main.yml @@ -0,0 +1,39 @@ +name: Main Edge Deploy + +on: + pull_request: + types: + - closed + branches: + - "main" + +jobs: + deploy: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + + permissions: + contents: write + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Use Node.js 18.x + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Install NPM dependencies + run: npm i + + - name: Install Azion CLI + run: | + curl -o azionlinux https://downloads.azion.com/linux/x86_64/azion + sudo mv azionlinux /usr/bin/azion + sudo chmod u+x /usr/bin/azion + + - name: Azion Action Deploy + run: | + azion -t ${{ secrets.AZION_PERSONAL_TOKEN }} + azion deploy