Merge pull request #14 from azazak123/feat/read-host-from-env #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |