mirror of
https://github.com/DeterminateSystems/nix-installer-action.git
synced 2024-12-23 13:32:06 +01:00
Add README.md
This commit is contained in:
parent
95c215ce17
commit
0065bcf2b8
1 changed files with 25 additions and 0 deletions
25
README.md
Normal file
25
README.md
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# Nix Installer Action
|
||||||
|
|
||||||
|
You can use `nix-installer` as a Github action like so:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lints:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Install Nix
|
||||||
|
uses: DeterminateSystems/nix-installer@main
|
||||||
|
with:
|
||||||
|
# Allow the installed Nix to make authenticated Github requests.
|
||||||
|
# If you skip this, you will likely get rate limited.
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Run `nix build`
|
||||||
|
run: nix build .
|
||||||
|
```
|
Loading…
Reference in a new issue