From dc482404d9a35b15d9485ae774618c837d12d673 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 7 Oct 2022 11:59:35 -0700 Subject: ci: add GitHub actions and depedendabot configuration Configure dependabot to report possible update for various actions that we use. Add two workflows: - update the flake dependencies once a week - deploy to fly.io when the main branch is updated --- .github/workflows/deploy.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/deploy.yaml (limited to '.github/workflows/deploy.yaml') diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..b811c8e --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,17 @@ +name: Deploy +on: + push: + branches: + - main +jobs: + production: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v17 + with: + extra_nix_config: | + experimental-features = nix-command flakes + - run: nix --log-format raw -L run .#deploy + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} -- cgit v1.2.3