-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c90322f
commit 04efd3b
Showing
6 changed files
with
92 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
name: Release | ||
|
||
jobs: | ||
# cargo_publish: | ||
# name: Publish to crates.io | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
# - name: Publish | ||
# run: cargo publish --locked --token ${{ secrets.CRATES_IO_TOKEN }} | ||
|
||
create_release: | ||
name: Create draft release | ||
runs-on: ubuntu-latest | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Create draft release | ||
run: gh release create ${{ github.ref_name }} --notes-file CHANGELOG.md --draft | ||
|
||
build: | ||
name: Build binaries | ||
needs: create_release | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ARCHIVE_NAME: fixit-${{ github.ref_name }}-${{ matrix.target }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
target: aarch64-unknown-linux-musl | ||
- os: ubuntu-latest | ||
target: x86_64-unknown-linux-musl | ||
- os: macos-latest | ||
target: x86_64-apple-darwin | ||
- os: macos-latest | ||
target: aarch64-apple-darwin | ||
steps: | ||
- name: Install Rust target | ||
run: rustup target add ${{ matrix.target }} | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Build | ||
run: cargo build --release --locked --target ${{ matrix.target }} | ||
- name: Create archive | ||
run: mv ./target/${{ matrix.target }}/release/fixit . && tar -czvf $ARCHIVE_NAME.tar.gz fixit | ||
- name: Checksum | ||
run: sha256sum $ARCHIVE_NAME.tar.gz > $ARCHIVE_NAME.sha256 | ||
- name: Upload artifacts | ||
run: gh release upload ${{ github.ref_name }} $ARCHIVE_NAME.{tar.gz,sha256} | ||
|
||
publish_release: | ||
name: Publish release | ||
runs-on: ubuntu-latest | ||
needs: build | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- name: Publish release | ||
run: gh release edit ${{ github.ref_name }} --draft=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), | ||
and this project adheres to | ||
[Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## v0.1.0-alpha | ||
|
||
## Added | ||
|
||
- Initial release |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
[package] | ||
name = "fixit" | ||
version = "0.1.0-alpha" | ||
version = "0.1.0-alpha.1" | ||
edition = "2021" | ||
license = "MIT" | ||
authors = [ "Yevhenii Babichenko <[email protected]>" ] | ||
homepage = "https://github.com/eugene-babichenko/fixit" | ||
repository = "https://github.com/eugene-babichenko/fixit" | ||
readme = "README.md" | ||
categories = [ "command-line-utilities" ] | ||
description = "A utility to fix mistakes in your commands." | ||
|
||
[dependencies] | ||
clap = { version = "4", features = ["derive", "env"] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters