-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.31 KB
/
beta.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
45
46
47
48
49
name: Build and Deploy Beta Hugo Site with Nix
on:
push:
branches:
- beta
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code with submodules
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- name: Install Nix
run: |
curl -L https://nixos.org/nix/install | sh
source /home/runner/.nix-profile/etc/profile.d/nix.sh
mkdir -p /home/runner/.config/nix/
echo "experimental-features = nix-command flakes" >> /home/runner/.config/nix/nix.conf
- name: Build Hugo Site
run: |
source /home/runner/.nix-profile/etc/profile.d/nix.sh
nix develop --extra-experimental-features nix-command --command build
- name: Set directory permissions for FTP Deploy
run: |
chmod -R 755 public/
- name: Deploy to FTP server
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME_BETA }}
password: ${{ secrets.FTP_PASSWORD_BETA }}
local-dir: public/
server-dir: website/
state-name: ../.ftp-deploy-sync-state.json
protocol: ftps
security: strict
exclude: |
**/kaffeepause/**
**/scss/main.css
**/scss/main.css.map