Skip to content

Commit

Permalink
Push to gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux committed Dec 16, 2023
1 parent ea467e7 commit 0617f97
Showing 1 changed file with 35 additions and 24 deletions.
59 changes: 35 additions & 24 deletions .github/workflows/nix-build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: 📖 Documentation
on:
pull_request:
push:
branches:
- main
Expand All @@ -13,30 +14,40 @@ on:

jobs:
tests:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout docs
uses: actions/checkout@v3
- name: Setup Nix
uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Build docs
run: nix-shell --run "./english_build.sh"
- name: Deploy docs to github pages
uses: ad-m/[email protected]
with:
# Token for the repo
# Can be passed in using $\{{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
# Destination branch to push changes
branch: gh-pages
# Use force push to fully overwrite the destination branch
force: true
# We have to push from the folder where files were generated.
# Same were the new repo was initialized in the previous step
directory: ./docs/en
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix-shell --run "./english_build.sh"


#jobs:
# tests:
# name: Deploy docs
# runs-on: ubuntu-latest
# steps:
# - name: Checkout docs
# uses: actions/checkout@v3
# - name: Setup Nix
# uses: cachix/install-nix-action@v20
# with:
# nix_path: nixpkgs=channel:nixos-unstable
# - name: Nix Cache
# uses: DeterminateSystems/magic-nix-cache-action@v2
# - name: Deploy docs to github pages
# uses: ad-m/[email protected]
# with:
# # Token for the repo
# # Can be passed in using $\{{ secrets.GITHUB_TOKEN }}
# github_token: ${{ secrets.GITHUB_TOKEN }}
# # Destination branch to push changes
# branch: gh-pages
# # Use force push to fully overwrite the destination branch
# force: true
# # We have to push from the folder where files were generated.
# # Same were the new repo was initialized in the previous step
# directory: ./docs/en

0 comments on commit 0617f97

Please sign in to comment.