Rust India has been renamed to Rust Bangalore. Update links. #93
Workflow file for this run
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 site" | |
on: | |
# Run only when pushing to master branch | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
static-site: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: cachix/install-nix-action@v17 | |
with: | |
extra_nix_config: | | |
experimental-features = nix-command flakes | |
- name: Build 🔧 | |
run: | | |
nix build -j 4 | |
nix run .#tailwind-run -- --help # Just to cache the Nix build | |
- name: Generate HTML 🔧 | |
if: github.ref == 'refs/heads/master' | |
run: | | |
mkdir ./output | |
export TARGET=$(pwd)/output | |
nix run .#tailwind-run -- -o static/tailwind.css 'src/**/*.hs' | |
./result/bin/fpindia-site gen $TARGET | |
- name: Deploy to gh-pages 🚀 | |
if: github.ref == 'refs/heads/master' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: output | |
cname: functionalprogramming.in |