Skip to content

fcking workflow

fcking workflow #5

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
tags:
- 'v*' # Create a release only for tag start with v.
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Build (Release Mode)
run: cargo build --release --verbose
- name: Run tests (Release Mode)
run: cargo test --release --verbose
- name: Archive build output
run: tar -czf copper_server.tar.gz -C target/release server
# Remplace "my_minecraft_server" par le nom de ton binaire
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: copper_server.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}