Skip to content

Merge pull request #14 from azazak123/feat/read-host-from-env #17

Merge pull request #14 from azazak123/feat/read-host-from-env

Merge pull request #14 from azazak123/feat/read-host-from-env #17

name: "Deploy workflow"
on:
push:
branches:
- "master"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: dprosper/[email protected]
with:
API_KEY: ${{ secrets.API_KEY }}
INSTALL_PLUGINS: cloud-functions
REGION: eu-de
- name: Setup ibmcloud
run: ibmcloud fn namespace target Avatar-bot
- name: Build static
run: nix build .#static
- name: Create actions
run: nix develop --command dune build @create-actions
- name: Redeploy
run: nix develop --command dune build @redeploy