Bump hylo #59
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish release version | |
on: | |
push: | |
tags: ["v*.*.*"] | |
jobs: | |
build: | |
name: Build and test | |
uses: ./.github/workflows/build-and-test-template.yml | |
with: | |
build-type: release | |
publish-release: | |
name: Publish release | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: Download hylo-lsp-artifacts-mac | |
uses: actions/download-artifact@v3 | |
with: | |
name: hylo-lsp-artifacts-mac | |
path: hylo-lsp-mac-x64 | |
- name: Download hylo-lsp-artifacts-linux | |
uses: actions/download-artifact@v3 | |
with: | |
name: hylo-lsp-artifacts-linux | |
path: hylo-lsp-linux-x64 | |
- name: Download hylo-lsp-artifacts-windows | |
uses: actions/download-artifact@v3 | |
with: | |
name: hylo-lsp-artifacts-windows | |
path: hylo-lsp-windows-x64 | |
- name: Package Hylo release artifacts | |
run: | | |
set -eo pipefail | |
git -C hylo rev-parse HEAD > ref | |
cp -Rp hylo/StandardLibrary/Sources hylo-stdlib | |
mkdir -p release-artifacts | |
# tar -zcvf release-artifacts/hylo-stdlib.tar.gz hylo-stdlib | |
zip -r release-artifacts/hylo-stdlib.zip hylo-stdlib ref | |
# Repackage with just the server binaries, for minimal size, and zip for easy unpacking in node.js | |
chmod +x hylo-lsp-mac-x64/* | |
chmod +x hylo-lsp-linux-x64/* | |
chmod +x hylo-lsp-windows-x64/* | |
echo ${{ github.ref_name }} > ref | |
zip release-artifacts/hylo-lsp-server-mac-x64.zip hylo-lsp-mac-x64/hylo-lsp-server ref | |
zip release-artifacts/hylo-lsp-client-mac-x64.zip hylo-lsp-mac-x64/hylo-lsp-client ref | |
zip release-artifacts/hylo-lsp-server-linux-x64.zip hylo-lsp-linux-x64/hylo-lsp-server ref | |
zip release-artifacts/hylo-lsp-client-linux-x64.zip hylo-lsp-linux-x64/hylo-lsp-client ref | |
zip release-artifacts/hylo-lsp-server-windows-x64.zip hylo-lsp-windows-x64/hylo-lsp-server.exe hylo-lsp-windows-x64/*.dll ref | |
# zip release-artifacts/hylo-lsp-client-windows-x64.zip hylo-lsp-windows-x64/hylo-lsp-client.exe ref | |
ls -l release-artifacts | |
- name: Extract version changelog | |
run: ./extract_version_changelog.sh ${{ github.ref_name }} >> version_changelog.txt | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
LICENSE | |
release-artifacts/* | |
body_path: version_changelog.txt |