polaris-mirror/.github/actions/make-linux-release/action.yml
Antoine Gersant 538b41a2b4
Use standard directories when running on Linux (#91)
* Use standard Linux directories for application data (https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard)

* Use standard system directories

* Cleanup all Polaris files during uninstall

* Expose get_pid_directory to rest of the crate

* Add separate targets for install binary and data files, clean up makefile

* Use environment variables for directory locations during install process

* On Linux, read locations from environment variables at compile time

* Split static_directory in two (web and swagger directories)

* Follow recommendations from the Make manual

* Avoid redundant directories

* Added workflow to validate installer setup

* Added CLI options to locate log file, pid file and cache directory

* Fixed an issue where build command did not support the xdg/system switch

* Renamed log option to log-level

* Fixed an issue where xdg install would do a system build

* Use re-usable action to make linux release

* Avoid nested actions (see https://github.com/actions/runner/issues/646)

* Updated installation instructions

* Replaced deprecated use of set-env
2020-11-26 15:57:08 -08:00

28 lines
919 B
YAML

name: 'Make a Linux Release'
description: 'Creates archive containing files to install Polaris on on a Linux system'
inputs:
version-number:
description: 'Polaris version number'
required: true
default: '0.0'
output-file:
description: 'File path where the resulting archive should be stored'
required: false
default: 'polaris.tar.gz'
runs:
using: "composite"
steps:
- name: Download Polaris Web
run: |
curl -L -o web.zip https://github.com/agersant/polaris-web/releases/latest/download/web.zip
unzip web.zip
shell: bash
- name: Set Polaris version
run: echo "POLARIS_VERSION=${{ inputs.version-number }}" >> $GITHUB_ENV
shell: bash
- name: Build archive
run: res/unix/release_script.sh
shell: bash
- name: Copy archive to output location
run: cp release/polaris.tar.gz ${{ inputs.output-file }}
shell: bash