Update cborg patch #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |