Skip to content

Commit

Permalink
Autorelease
Browse files Browse the repository at this point in the history
  • Loading branch information
divanvisagie committed Sep 3, 2023
1 parent 4b22678 commit c5eceef
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Rust

on:
push:
branches:
- main
tags:
- 'v*.*.*' # Trigger this workflow for tags like v1.0.0

env:
CARGO_TERM_COLOR: always

jobs:
build_and_release:
runs-on: windows-latest # Use a Windows runner

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-pc-windows-msvc # Target for Windows

- name: Build
run: cargo build --release

- name: Upload to GitHub Releases
if: startsWith(github.ref, 'refs/tags/') # Only upload on tagged commits
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }} # Provided by GitHub
asset_path: ./target/x86_64-pc-windows-msvc/release/your_binary.exe # Replace with your binary name
asset_name: your_binary.exe # Replace with your binary name
asset_content_type: application/octet-stream
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "arcanaeum"
version = "0.2.1"
version = "0.2.2"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down

0 comments on commit c5eceef

Please sign in to comment.