stylua 0.4.0

A code formatter for Lua
Documentation
name: Release

on:
  push:
    tags: ["*"]

jobs:
  windows:
    runs-on: windows-latest

    steps:
    - uses: actions/checkout@v1

    - name: Build (All features)
      run: cargo build --verbose --locked --release --all-features

    - name: Upload artifacts
      uses: actions/upload-artifact@v1
      with:
        name: stylua-win64
        path: target/release/stylua.exe

  macos:
    runs-on: macos-latest

    steps:
    - uses: actions/checkout@v1
      with:
        submodules: true

    - name: Install Rust
      run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

    - name: Build (All features)
      run: |

        source $HOME/.cargo/env
        cargo build --verbose --locked --release --all-features

    - name: Upload artifacts
      uses: actions/upload-artifact@v1
      with:
        name: stylua-macos
        path: target/release/stylua

  linux:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
      with:
        submodules: true

    - name: Build (All features)
      run: cargo build --locked --verbose --release --all-features

    - name: Upload artifacts
      uses: actions/upload-artifact@v1
      with:
        name: stylua-linux
        path: target/release/stylua