diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-09-20 08:25:46 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-09-20 08:25:46 -0700 |
commit | 5f0e185a13340c0f59a857c29da2852b71353fc7 (patch) | |
tree | 37916d2b8130dc589947e0336a9e2c55f4a0a5c0 /.github/workflows | |
parent | d617f59c2bd6013a4334913900939c1eb4916c92 (diff) | |
download | pandoc-5f0e185a13340c0f59a857c29da2852b71353fc7.tar.gz |
Nightly - use directory instead of suffix with date.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/nightly.yml | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index fc676120a..0d10e3bac 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -28,11 +28,10 @@ jobs: strip $HOME/.cabal/bin/pandoc-citeproc - name: Install artifact run: | - export SUFFIX=nightly-$(date +%Y-%m-%d) - export ARTIFACTS=nightly-linux + export ARTIFACTS=nightly-linux/pandoc-nightly-linux-$(date +%Y-%m-%d) mkdir -p ${ARTIFACTS} - cp $HOME/.cabal/bin/pandoc ${ARTIFACTS}/pandoc-${SUFFIX} - cp $HOME/.cabal/bin/pandoc-citeproc ${ARTIFACTS}/pandoc-citeproc-${SUFFIX} + cp $HOME/.cabal/bin/pandoc ${ARTIFACTS}/ + cp $HOME/.cabal/bin/pandoc-citeproc ${ARTIFACTS}/ cp COPYRIGHT ${ARTIFACTS}/ echo "Built from ${GITHUB_SHA}" > ${ARTIFACTS}/README.nightly.txt - uses: actions/upload-artifact@master @@ -58,17 +57,13 @@ jobs: shell: cmd run: | for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd"') do set THEDATE=%%a - set SUFFIX=nightly-%THEDATE% - set ARTIFACTS=nightly-windows + set ARTIFACTS=nightly-windows\pandoc-nightly-windows-%THEDATE% mkdir %ARTIFACTS% stack build pandoc pandoc-citeproc forfiles /P .\.stack-work\install /M pandoc*.exe /S /C "cmd /C copy @path %ARTIFACTS%" copy COPYRIGHT %ARTIFACTS% ren %ARTIFACTS%\COPYRIGHT COPYRIGHT.txt dir %ARTIFACTS% - ren %ARTIFACTS%\pandoc.exe pandoc-%SUFFIX%.exe - ren %ARTIFACTS%\pandoc-citeproc.exe pandoc-citeproc-%SUFFIX%.exe - dir %ARTIFACTS% echo Built from %GITHUB_SHA% > %ARTIFACTS%\README.nightly.txt - uses: actions/upload-artifact@master with: @@ -91,13 +86,12 @@ jobs: ./stack build --dependencies-only pandoc pandoc-citeproc - name: Build artifacts run: | - export SUFFIX=nightly-$(date +%Y-%m-%d) - export ARTIFACTS=nightly-macos + export ARTIFACTS=nightly-macos/pandoc-nightly-macos-$(date +%Y-%m-%d) mkdir -p ${ARTIFACTS} ./stack build pandoc pandoc-citeproc for f in $(find .stack-work/install -name 'pandoc*' -perm +001 -type f); do cp $f ${ARTIFACTS}/; done - mv ${ARTIFACTS}/pandoc ${ARTIFACTS}/pandoc-${SUFFIX} - mv ${ARTIFACTS}/pandoc-citeproc ${ARTIFACTS}/pandoc-citeproc-${SUFFIX} + mv ${ARTIFACTS}/pandoc ${ARTIFACTS}/pandoc + mv ${ARTIFACTS}/pandoc-citeproc ${ARTIFACTS}/pandoc-citeproc cp COPYRIGHT ${ARTIFACTS}/ echo "Built from ${GITHUB_SHA}" > ${ARTIFACTS}/README.nightly.txt - uses: actions/upload-artifact@master |