mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2025-06-21 12:31:42 +02:00
fix: disable pdf generation before the bug gets fixed
This commit is contained in:
parent
72ec7f2b0d
commit
45ad6b3019
74
.github/workflows/release-pdf.yml
vendored
74
.github/workflows/release-pdf.yml
vendored
@ -10,41 +10,41 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Install nix
|
# - name: Install nix
|
||||||
uses: cachix/install-nix-action@v23
|
# uses: cachix/install-nix-action@v23
|
||||||
with:
|
|
||||||
nix_path: "nixpkgs=channel:nixpkgs-unstable"
|
|
||||||
extra_nix_config: |
|
|
||||||
experimental-features = nix-command flakes
|
|
||||||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Show nixpkgs version
|
|
||||||
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
|
|
||||||
- name: Run a command with nix develop
|
|
||||||
run: |
|
|
||||||
nix develop .#export-pdf --ignore-environment --command bash -c '
|
|
||||||
pnpm install
|
|
||||||
pnpm export-pdf
|
|
||||||
'
|
|
||||||
# # For debugging, upload the pdfs as artifacts
|
|
||||||
# - uses: actions/upload-artifact@v3
|
|
||||||
# with:
|
# with:
|
||||||
# name: pdf
|
# nix_path: "nixpkgs=channel:nixpkgs-unstable"
|
||||||
# path: '*.pdf'
|
# extra_nix_config: |
|
||||||
- name: Generate changelog
|
# experimental-features = nix-command flakes
|
||||||
run: |
|
# access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
||||||
# Get the previous tag
|
# - name: Show nixpkgs version
|
||||||
git fetch --tags
|
# run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
|
||||||
PREVIOUS_TAG=$(git tag --sort=-creatordate | head -n 2 | tail -n 1)
|
# - name: Run a command with nix develop
|
||||||
# Generate the changelog
|
# run: |
|
||||||
git log --pretty=format:"%h %s" $PREVIOUS_TAG..HEAD > CHANGELOG
|
# nix develop .#export-pdf --ignore-environment --command bash -c '
|
||||||
|
# pnpm install
|
||||||
echo "Changelog from $PREVIOUS_TAG to HEAD:"
|
# pnpm export-pdf
|
||||||
cat CHANGELOG
|
# '
|
||||||
- name: Release PDF
|
# # # For debugging, upload the pdfs as artifacts
|
||||||
uses: softprops/action-gh-release@v1
|
# # - uses: actions/upload-artifact@v3
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
# # with:
|
||||||
with:
|
# # name: pdf
|
||||||
generate_release_notes: true
|
# # path: '*.pdf'
|
||||||
body_path: CHANGELOG
|
# - name: Generate changelog
|
||||||
files: |
|
# run: |
|
||||||
nixos-and-flakes-book.pdf
|
# # Get the previous tag
|
||||||
|
# git fetch --tags
|
||||||
|
# PREVIOUS_TAG=$(git tag --sort=-creatordate | head -n 2 | tail -n 1)
|
||||||
|
# # Generate the changelog
|
||||||
|
# git log --pretty=format:"%h %s" $PREVIOUS_TAG..HEAD > CHANGELOG
|
||||||
|
#
|
||||||
|
# echo "Changelog from $PREVIOUS_TAG to HEAD:"
|
||||||
|
# cat CHANGELOG
|
||||||
|
# - name: Release PDF
|
||||||
|
# uses: softprops/action-gh-release@v1
|
||||||
|
# if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
# with:
|
||||||
|
# generate_release_notes: true
|
||||||
|
# body_path: CHANGELOG
|
||||||
|
# files: |
|
||||||
|
# nixos-and-flakes-book.pdf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user