-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (36 loc) · 1.15 KB
/
schedule.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
name: schedule events
on:
push:
paths:
- "templates/chaostreff-scheduler/**"
schedule:
- cron: '1 2 1 * *' # Runs at 02:01 UTC on the 1st of every month
jobs:
schedule:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-23.11
- uses: cachix/cachix-action@v15
with:
name: s77-website
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- name: schedule events
run: echo "WORKDIR=$(nix-build -A schedule)" >> $GITHUB_ENV
- name: push scheduled events
run: |
git pull $WORKDIR
git config --global user.name 'chaostreff-scheduler'
git config --global user.email 'chaostreff-scheduler@section77.de'
#git push -q https://git:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.REPOSITORY }}
git push
- name: generate site
run: nix-build -A site
- name: deploy
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./result