Skip to content

Commit d0943cb

Browse files
committed
Revert "ci: remove nightly release"
This reverts commit 61bfaa9.
1 parent 61bfaa9 commit d0943cb

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: nightly
2+
3+
on:
4+
schedule:
5+
- cron: "13 15 * * *"
6+
jobs:
7+
nightly_release:
8+
environment: env
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Install Nix
13+
uses: cachix/install-nix-action@v17
14+
with:
15+
extra_nix_config: |
16+
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
17+
18+
- name: Restore and save Nix store
19+
uses: nix-community/cache-nix-action@v6
20+
with:
21+
# restore and save a cache using this key
22+
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
23+
# if there's no cache hit, restore a cache by this prefix
24+
restore-prefixes-first-match: nix-${{ runner.os }}-
25+
# collect garbage until the Nix store size (in bytes) is at most this number
26+
# before trying to save a new cache
27+
# 1G = 1073741824
28+
gc-max-store-size-linux: 1G
29+
# do purge caches
30+
purge: true
31+
# purge all versions of the cache
32+
purge-prefixes: nix-${{ runner.os }}-
33+
# created more than this number of seconds ago
34+
purge-created: 0
35+
# or last accessed this duration (ISO 8601 duration format)
36+
# before the start of the `Post Restore and save Nix store` phase
37+
purge-last-accessed: P1DT12H
38+
# except any version with the key that is the same as the `primary-key`
39+
purge-primary-key: never
40+
41+
- uses: actions/checkout@v6
42+
with:
43+
ref: master
44+
45+
- name: release
46+
run: make ci-release-nightly
47+
env:
48+
CERULEAN_PASSPHRASE: ${{ secrets.CERULEAN_PASSPHRASE }}

0 commit comments

Comments
 (0)