Cross platform release artifacts #32
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 | |
- name: Download hylo-lsp-artifacts-linux | |
uses: actions/download-artifact@v3 | |
with: | |
name: hylo-lsp-artifacts-linux | |
path: hylo-lsp-linux | |
- name: Download hylo-lsp-artifacts-windows | |
uses: actions/download-artifact@v3 | |
with: | |
name: hylo-lsp-artifacts-windows | |
path: hylo-lsp-windows | |
- name: Package Hylo release artifacts | |
run: | | |
set -eo pipefail | |
cp -Rp hylo/Library/Hylo hylo-stdlib | |
ls -l hylo-lsp-mac/ | |
chmod +x hylo-lsp-mac/* | |
chmod +x hylo-lsp-linux/* | |
chmod +x hylo-lsp-windows/* | |
tar -zcvf hylo-stdlib.tar.gz hylo-stdlib | |
# tar -zcvf hylo-lsp-mac.tar.gz hylo-lsp-mac | |
mkdir -p release-artifacts | |
cp hylo-lsp-mac/hylo-lsp-server release-artifacts/hylo-lsp-server-mac | |
cp hylo-lsp-linux/hylo-lsp-server release-artifacts/hylo-lsp-server-linux | |
cp hylo-lsp-windows/hylo-lsp-server.exe release-artifacts/hylo-lsp-server-windows.exe | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
LICENSE | |
hylo-stdlib.tar.gz | |
release-artifacts/* |