diff options
| author | John MacFarlane <[email protected]> | 2023-03-10 09:23:16 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2023-03-10 09:23:16 -0800 |
| commit | 1cd5829a0cf825b73d28cf8f7cf916a8443a54dd (patch) | |
| tree | 51a303aad20acdebb12ad743646486cd87ee3870 /.github/workflows/release-candidate.yml | |
| parent | 9c39a66c384df649ff4088cb0cf7a0ffd5082062 (diff) | |
Factor out make_macos_release.sh from the release candidate workflow.
Also use cabal instead of stack to build the macos binary.
Diffstat (limited to '.github/workflows/release-candidate.yml')
| -rw-r--r-- | .github/workflows/release-candidate.yml | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/.github/workflows/release-candidate.yml b/.github/workflows/release-candidate.yml index fe48c34e6..dd71748ca 100644 --- a/.github/workflows/release-candidate.yml +++ b/.github/workflows/release-candidate.yml @@ -90,35 +90,9 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Build executable + - name: Create release run: | - stack --no-terminal setup - stack --no-terminal update - stack --no-terminal install --ghc-options='-j4 +RTS -A256m -RTS -split-sections' - - - name: Create artifacts - run: | - export VERSION=$(grep '^[Vv]ersion:' pandoc.cabal | awk '{print $2;}') - export ARTIFACTS=macos-release-candidate - export RESOURCES=${ARTIFACTS}/Resources - export ROOT=${ARTIFACTS}/pandoc - export DEST=${ROOT}/usr/local - export ME=$(whoami) - export BASE=pandoc-$VERSION - mkdir -p ${ARTIFACTS} - mkdir -p ${RESOURCES} - mkdir -p ${DEST}/bin - mkdir -p ${DEST}/share/man/man1 - cp ~/.local/bin/pandoc ${DEST}/bin/ - strip ${DEST}/bin/pandoc - cp man/pandoc.1 ${DEST}/share/man/man1/pandoc.1 - cp man/pandoc-server.1 ${DEST}/share/man/man1/pandoc-server.1 - cp man/pandoc-lua.1 ${DEST}/share/man/man1/pandoc-lua.1 - ~/.local/bin/pandoc -s COPYING.md -Vpagetitle=License -o ${RESOURCES}/license.html - chown -R $ME:staff ${ROOT} - sed -e "s/PANDOCVERSION/${VERSION}/" macos/distribution.xml.in > ${ARTIFACTS}/distribution.xml - cp macos/Makefile ${ARTIFACTS}/ - echo ${VERSION} > ${ARTIFACTS}/version.txt + sh macos/make_macos_release.sh - uses: actions/upload-artifact@v3 with: |
