Build linux target for release #85
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: 'Build linux target for release' | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version to release ( ex: v0.0.1 )' | |
required: true | |
env: | |
node-version: 14.x | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: docker-practice/actions-setup-docker@master | |
with: | |
docker_version: "20.10" | |
docker_channel: stable | |
- name: Build madlib | |
run: DOCKER_BUILDKIT=1 docker build -f ".github/workflows/Dockerfile-x86_64-linux" -o . . | |
- name: Bundle unknown archive | |
run: | | |
mkdir madlib-x86_64-unknown-linux-gnu | |
cp ./madlib ./madlib-x86_64-unknown-linux-gnu/ | |
cp -R runtime ./madlib-x86_64-unknown-linux-gnu/ | |
cp -R prelude ./madlib-x86_64-unknown-linux-gnu/ | |
cp ./package-installer.js ./madlib-x86_64-unknown-linux-gnu/ | |
tar -czvf madlib-x86_64-unknown-linux-gnu.tar.gz madlib-x86_64-unknown-linux-gnu | |
- uses: pdamianik/release-tag-to-upload-url-action@v1.0.1 | |
id: release_upload_url | |
with: | |
tag: ${{ github.event.inputs.version }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload unknown build | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.release_upload_url.outputs.uploadUrl }} | |
asset_path: ./madlib-x86_64-unknown-linux-gnu.tar.gz | |
asset_name: madlib-x86_64-unknown-linux-gnu.tar.gz | |
asset_content_type: application/tar+gzip |