Skip to content

Removed 'nix flake update' #596

Removed 'nix flake update'

Removed 'nix flake update' #596

Workflow file for this run

name: Build IHP Documentation and API Reference
on:
push:
branches: 'master'
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/a95ed9fe764c3ba2bf2d2fa223012c379cd6b32e.tar.gz
- uses: cachix/cachix-action@v12
with:
name: digitallyinduced
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Install devenv.sh
run: nix profile install --accept-flake-config github:cachix/devenv/latest
if: matrix.os != 'ARM64'
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-1
- name: Build Docs
run: |
cd $GITHUB_WORKSPACE
devenv shell build-guide
- name: Build API Reference
run: |
cd $GITHUB_WORKSPACE
devenv shell build-api-reference
tar -czvf api-reference.tar.gz haddock-build
- name: Uploading to S3
run: |
aws s3 cp ./Guide/guide.tar.gz s3://${{ secrets.S3_BUCKET }}/docs/guide.tar.gz
aws s3 cp ./api-reference.tar.gz s3://${{ secrets.S3_BUCKET }}/docs/api-reference.tar.gz