-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (31 loc) · 1.1 KB
/
publish.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
name: Publish Overlay
on:
push:
branches:
- master
workflow_dispatch:
jobs:
Build-Overlay:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
- uses: cachix/install-nix-action@v16
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Build 🔧
uses: workflow/nix-shell-action@v3
with:
packages: cabal-install, ghc, gnupg, unzip, dos2unix
script: |
mkdir $HOME/secrets
gpg --quiet --batch --yes --decrypt --passphrase="${{ secrets.KEYS_KEY }}" \
--output $HOME/secrets/keys.zip ${{ github.workspace }}/.github/keys.zip.gpg
unzip -qq $HOME/secrets/keys.zip
unzip -qq ${{ github.workspace }}/.github/pkg.zip
PATH=.:$PATH hackage-overlay-repo-tool --patches patches --keys keys/ build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.2
with:
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy.