From 52fbcc4d0c1b35ea8f5720736268eb79cbe389e1 Mon Sep 17 00:00:00 2001 From: cballevre Date: Wed, 18 Sep 2024 15:03:22 +0200 Subject: [PATCH] chore: Add deployement step to Github Actions workflow --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f304132..31c7e9b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,11 @@ on: branches: - master +env: + MATTERMOST_CHANNEL: '{"dev":"papillon","beta":"papillon,publication","stable":"papillon,publication"}' + REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }} + MATTERMOST_HOOK_URL: ${{ secrets.MATTERMOST_HOOK_URL }} + jobs: build: name: Build @@ -25,3 +30,10 @@ jobs: run: yarn test - name: Build run: yarn build + - name: Set SSH for downcloud + uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.DOWNCLOUD_SSH_KEY }} + - name: Deploy + if: github.ref == 'refs/heads/master' + run: yarn run deploy