Skip to content

Commit

Permalink
Implement pre-release action
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminwood committed Aug 4, 2023
1 parent 8fc4a27 commit 74d0e39
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: "pre-release"

on:
push:
branches:
- main

jobs:
release:
name: Release - ${{ matrix.platform.release_for }}
strategy:
matrix:
platform:
- release_for: Linux-x86_64
os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
bin: transport
name: transport-Linux-x86_64.tar.gz
command: build

- release_for: macOS-aarch64
os: macOS-latest
target: aarch64-apple-darwin
bin: transport
name: transport-Darwin-aarch64.tar.gz
command: build

runs-on: ${{ matrix.platform.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
command: ${{ matrix.platform.command }}
target: ${{ matrix.platform.target }}
args: "--locked --release"

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ github.token }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
*.tar.gz

0 comments on commit 74d0e39

Please sign in to comment.