Skip to content

Commit

Permalink
fix: action
Browse files Browse the repository at this point in the history
  • Loading branch information
u2x1 committed Dec 27, 2022
1 parent 8bfe55d commit 7bdc82e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,19 @@ jobs:
run: |
mkdir dist
cabal install exe:gcwdr-exe --install-method=copy --overwrite-policy=always --installdir=dist
- if: matrix.os == 'windows-latest'
name: Set extension to .exe on Windows
run: echo "EXT=.exe" >> $GITHUB_ENV
name: Set Windows binary path name
run: |
chcp 65001
mv ./dist/gcwdr-exe.exe ./dist/gcwdr-${{ runner.os }}-ghc-${{ matrix.ghc }}.exe
echo "BINARY_PATH=./dist/gcwdr-${{ runner.os }}-ghc-${{ matrix.ghc }}.exe" >> $env:GITHUB_ENV
- name: Set binary path name
- if: matrix.os != 'windows-latest'
name: Set Unix binary path name
run: |
mv ./dist/gcwdr-exe${{ env.EXT }} ./dist/gcwdr-${{ runner.os }}-ghc-${{ matrix.ghc }}${{ env.EXT }}
echo "BINARY_PATH=./dist/gcwdr-${{ runner.os }}-ghc-${{ matrix.ghc }}${{ env.EXT }}" >> $GITHUB_ENV
mv ./dist/gcwdr-exe ./dist/gcwdr-${{ runner.os }}-ghc-${{ matrix.ghc }}
echo "BINARY_PATH=./dist/gcwdr-${{ runner.os }}-ghc-${{ matrix.ghc }}" >> $GITHUB_ENV
- name: Compress binary
uses: svenstaro/[email protected]
Expand Down
1 change: 0 additions & 1 deletion src/Entry/Read.hs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ gnrtPublic cfg = do
let articles = addGlb glbRes <$> runAtclModule (postObjs <> pageObjs <> diaryObjs)
-- Generate htmls.
gnrtSitemap outputPath (siteUrl cfg) articles
logWT Info $ show articles
gnrtHtmls outputPath themePath articles -- Posts and pages
T.writeFile (outputDir cfg </> "index.html") indexHtml -- Index
createDirectoryIfMissing True (outputDir cfg </> "diary/")
Expand Down

0 comments on commit 7bdc82e

Please sign in to comment.