Skip to content

Merge pull request #61 from Macro-Deck-App/renovate/newtonsoft.json-13.x #69

Merge pull request #61 from Macro-Deck-App/renovate/newtonsoft.json-13.x

Merge pull request #61 from Macro-Deck-App/renovate/newtonsoft.json-13.x #69

name: Deploy Develop
on:
workflow_dispatch:
push:
branches: [ "develop" ]
jobs:
ci:
uses: ./.github/workflows/ci.yml
name: Build and test
deploy:
name: Build and deploy Docker image
needs: [ci]
runs-on: ubuntu-latest
steps:
- name: Updating the image on the server
uses: appleboy/[email protected]
with:
host: ${{ secrets.DOCKER_HOST }}
username: ${{ secrets.GITHUBWORKFLOWS_USER }}
password: ${{ secrets.GITHUBWORKFLOWS_USER_PASSWORD }}
port: ${{ secrets.DOCKER_HOST_PORT }}
script: |
cd "scripts/ExtensionStoreAPI/"
./update_develop.sh ${{ github.sha }}
- uses: fjogeleit/http-request-action@v1
with:
url: 'https://bot.api.macro-deck.app/webhook/extensionstoreapi-workflow'
method: 'POST'
bearerToken: ${{ secrets.WEBHOOK_KEY }}
customHeaders: '{"Content-Type": "application/json" }'
data: '{"toEveryone":false,"embed":{"color":{"r":0,"g":1,"b":0},"description":"https://test.extensionstore.api.macro-deck.app is now on dev_${{ github.sha }}.","fields":[{"name":"Branch","value":"Develop","inline":false},{"name":"SHA","value":"${{ github.sha }}","inline":false}]}}'