aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2020-11-18 12:54:22 -0500
committerChristine Dodrill <me@christine.website>2020-11-18 12:54:22 -0500
commit5ff4af60f8952ea7c5818189dbd546cb21ff0ca6 (patch)
tree1844c71b71a20f88f9cabc796d543a892a3c9772 /.github
parent7ac6c03341108363cf6e8f6322d75fc5d5702757 (diff)
downloadxesite-5ff4af60f8952ea7c5818189dbd546cb21ff0ca6.tar.xz
xesite-5ff4af60f8952ea7c5818189dbd546cb21ff0ca6.zip
will this work lol
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/nix.yml13
1 files changed, 4 insertions, 9 deletions
diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml
index 43c3169..7ef3ec4 100644
--- a/.github/workflows/nix.yml
+++ b/.github/workflows/nix.yml
@@ -17,24 +17,19 @@ jobs:
name: xe
- run: nix-build
- name: Log into GitHub Container Registry
+ if: github.ref == 'refs/heads/main'
run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
- name: Docker push
+ if: github.ref == 'refs/heads/main'
run: |
docker load -i result
docker tag xena/christinewebsite:latest ghcr.io/xe/site:$GITHUB_SHA
docker push ghcr.io/xe/site
- release:
- runs-on: ubuntu-latest
- needs: docker-build
- if: github.ref == 'refs/heads/main'
- steps:
- - uses: actions/checkout@v1
- - uses: cachix/install-nix-action@v12
- - run: nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
- name: deploy
+ if: github.ref == 'refs/heads/main'
run: ./scripts/release.sh
env:
- NIX_PATH: nixpkgs=https://nixos.org/channels/nixpkgs-unstable
+ NIX_PATH: /nix/var/nix/profiles/per-user/root/channels
DIGITALOCEAN_ACCESS_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
MI_TOKEN: ${{ secrets.MI_TOKEN }}
PATREON_ACCESS_TOKEN: ${{ secrets.PATREON_ACCESS_TOKEN }}