-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9798936
commit 61a31af
Showing
3 changed files
with
54 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,14 @@ | ||
name: Build and Check | ||
name: Check PR | ||
|
||
on: | ||
push: | ||
branches: master | ||
pull_request: | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
check-pr: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/[email protected] | ||
|
||
- name: Install Nix ❄️ | ||
uses: cachix/install-nix-action@v20 | ||
with: | ||
extra_nix_config: | | ||
experimental-features = nix-command flakes | ||
- uses: actions/[email protected] | ||
- uses: DeterminateSystems/nix-installer-action@main | ||
|
||
- name: Link Cachix 🔌 | ||
uses: cachix/cachix-action@v12 | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Deploy Main | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy-main: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: DeterminateSystems/nix-installer-action@main | ||
|
||
- name: Link Cachix 🔌 | ||
uses: cachix/cachix-action@v12 | ||
with: | ||
name: cosmos | ||
authToken: '${{ secrets.COSMOS_CACHE_KEY }}' | ||
|
||
- name: Check 🔎 | ||
run: | | ||
nix flake check --print-build-logs | ||
- name: Run Shell 🐚 | ||
run: | | ||
nix develop | ||
- name: Push to FlakeHub ❄️ | ||
uses: determinatesystems/flakehub-push@main | ||
with: | ||
rolling: true | ||
visibility: "public" |