diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..aaf668e0 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,51 @@ +name: Build and Release binary on Push to Master +on: + release: + types: [published, edited] + branches: + - main +jobs: + generate_binary: + name: Create binary release + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Setup elixir + id: beam + uses: erlef/setup-beam@v1 + with: + otp-version: 25.x # Define the OTP version [required] + elixir-version: 1.14.x # Define the elixir version [required] + experimental-otp: true + - name: Cache Mix + uses: actions/cache@v3 + with: + path: deps + key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} + restore-keys: | + ${{ runner.os }}-mix- + - name: Cache Burrito OTP deps + uses: actions/cache@v3 + with: + key: ${{ runner.os }}-burrito- + path: | + ~/.cache/burrito_file_cache/ + ~/burrito_out/ + - name: Install dependencies + run: mix deps.get + - name: Install xz + run: sudo apt-get update && sudo apt-get install xz-utils + - name: Setup Zig for burrito + uses: goto-bus-stop/setup-zig@v2 + with: + version: 0.10.0 + - name: Create release + run: mix release supavisor_bin + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: burrito_out/* + tag: ${{ github.ref }} + overwrite: true + file_glob: true diff --git a/VERSION b/VERSION index a602fc9e..03834411 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.9.4 +0.9.5 \ No newline at end of file