Skip to content

Commit

Permalink
Create rust-by-gh.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
8go authored Sep 16, 2024
1 parent bf669ff commit 04fe2c0
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/rust-by-gh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Rust

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Build
run: |
cargo build
ls
ls *
cp ./*/matrix-commander-rs .
- uses: actions/upload-artifact@v4
with:
name: plain-linux
path: |
./matrix-commander-rs
retention-days: 1

# https://github.com/softprops/action-gh-release
- name: Release
uses: "softprops/action-gh-release@v2"
if: startsWith(github.ref, 'refs/tags/')
with:
token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
generate_release_notes: true
files: |
./matrix-commander-rs

0 comments on commit 04fe2c0

Please sign in to comment.