Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 0 additions & 59 deletions .github/workflows/build_release.yaml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,51 @@ permissions:
pages: write # To deploy to GitHub Pages

jobs:
build:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: true
matrix:
config:
- os: ubuntu-20.04
rust_target: x86_64-unknown-linux-gnu
ext: ""
args: ""
- os: macos-latest
rust_target: x86_64-apple-darwin
ext: ""
args: ""
- os: macos-latest
rust_target: aarch64-apple-darwin
ext: ""
args: ""
- os: windows-latest
rust_target: x86_64-pc-windows-msvc
ext: ".exe"
args: ""
- os: windows-latest
rust_target: aarch64-pc-windows-msvc
ext: ".exe"
args: "--no-default-features --features native-tls-vendored"
steps:
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- run: cargo build --release

- run: tar czvf commitlint-${{ github.ref_name }}-${{ matrix.config.rust_target }}.tar.gz -C target/release commitlint${{ matrix.config.ext }}

- uses: actions/upload-artifact@v4
with:
name: commitlint-${{ matrix.config.os }}
path: commitlint-${{ github.ref_name }}-${{ matrix.config.rust_target }}.tar.gz
if-no-files-found: error

crate:
runs-on: ubuntu-latest
environment: crate
Expand Down Expand Up @@ -68,12 +113,19 @@ jobs:
publish:
runs-on: ubuntu-latest
needs:
- build
- crate
- docker
- web
steps:
- uses: actions/download-artifact@v4
with:
path: commitlint
pattern: commitlint-*
merge-multiple: true
- uses: ncipollo/release-action@v1
with:
artifacts: commitlint/commitlint-*.tar.gz
generateReleaseNotes: true

web:
Expand Down
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
Expand Up @@ -5,7 +5,7 @@ documentation = "https://keisukeyamashita.github.io/commitlint-rs"
authors = ["KeisukeYamashita <[email protected]>"]
keywords = ["conventional-commits", "lint"]
categories = ["command-line-utilities"]
version = "0.1.7"
version = "0.1.8"
readme = "README.md"
repository = "https://github.com/KeisukeYamashita/commitlint-rs"
license = "MIT OR Apache-2.0"
Expand Down