From 76301ce729f7eb9dbdfd997bb2c3fc0f073cabf8 Mon Sep 17 00:00:00 2001 From: Luc Patiny Date: Tue, 7 Sep 2021 15:31:08 +0200 Subject: [PATCH] Create lactame.yml --- .github/workflows/lactame.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/lactame.yml diff --git a/.github/workflows/lactame.yml b/.github/workflows/lactame.yml new file mode 100644 index 0000000..c70acf9 --- /dev/null +++ b/.github/workflows/lactame.yml @@ -0,0 +1,29 @@ +name: Deploy build on lactame.com + +on: + release: + types: [published] + +env: + NODE_VERSION: 16.x + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Get package name + run: echo "PACKAGE_NAME=$(jq .name package.json | tr -d '"')" >> $GITHUB_ENV + - uses: actions/setup-node@v2 + with: + node-version: ${{ env.NODE_VERSION }} + - name: Install dependencies + run: npm install + - name: Build project + run: npm run build + - name: Deploy to lactame.com + uses: zakodium/lactame-action@v1 + with: + token: ${{ secrets.LACTAME_TOKEN }} + name: ${{ env.PACKAGE_NAME }} + folder: dist