-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
11 changed files
with
2,104 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# © 2019-2024 Serokell <[email protected]> | ||
# © 2019-2024 Lars Jellema <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
env: | ||
CDN_DISTRIBUTION_ID: E13UN1J1JFIWUZ | ||
CDN_BUCKET: s3://nixfmt.serokell.io | ||
|
||
jobs: | ||
deploy: | ||
runs-on: [self-hosted, nix] | ||
# if: ${{ github.ref == 'refs/heads/main' }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: deploy webdemo | ||
run: | | ||
nix build .#nixfmt-webdemo | ||
nix shell .#awscli -c aws s3 cp --recursive result/ "$CDN_BUCKET" | ||
# delete files that don't exist anymore, use `--size-only` so behavior won't depend on local file timestamps | ||
nix shell .#awscli -c aws s3 sync --delete --size-only result/ "$CDN_BUCKET" | ||
nix shell .#awscli -c aws cloudfront create-invalidation --distribution-id "$CDN_DISTRIBUTION_ID" --paths '/*' |
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 @@ | ||
/result |
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 +1,8 @@ | ||
<!-- | ||
- © 2024 Serokell <[email protected]> | ||
- SPDX-License-Identifier: MPL-2.0 | ||
--> | ||
|
||
# nixfmt-website | ||
|
||
This repository is used to build and deploy https://nixfmt.serokell.io/ - an online demo of [nixfmt](https://github.com/NixOS/nixfmt). The `nixfmt` is a `nix` formatter originally developed by `Serokell` and now becoming the official `nix` formatter. |
Oops, something went wrong.