Skip to content

Commit

Permalink
0.1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Mar 9, 2022
1 parent 76bd313 commit 3dfcda0
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,26 @@ on:
name: Create Release

jobs:
publish-crate:
name: Publish to crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- run: cargo login ${CRATES_IO_TOKEN}
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
- run: cargo build --release --locked
- run: ./target/release/chomp prebuild
- name: publish chomp
run: cargo publish

create-github-release:
name: Create GitHub Release
needs: publish-crate
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -23,8 +41,8 @@ jobs:
build:
name: Build assets for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: create-github-release
runs-on: ${{ matrix.os }}
strategy:
matrix:
name: [
Expand All @@ -51,7 +69,6 @@ jobs:

steps:
- uses: actions/checkout@v1
- uses: guybedford/chomp-action@v1

- name: Set env
run: |
Expand All @@ -65,7 +82,7 @@ jobs:
toolchain: stable

- name: Build
run: chomp build:release
run: cargo build --release --locked

- name: archive release
shell: bash
Expand All @@ -84,20 +101,3 @@ jobs:
file: chomp*${{ matrix.asset_extension }}
file_glob: true
tag: ${{ github.ref }}

publish-crate:
name: Publish to crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: guybedford/chomp-action@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- run: cargo login ${CRATES_IO_TOKEN}
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
- run: chomp prebuild
- name: publish chomp
run: cargo publish
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 = "chompbuild"
version = "0.1.10"
version = "0.1.11"
authors = ["Guy Bedford <[email protected]>"]
edition = "2021"
license = "GPL-3.0"
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ fn uri_parse(uri_str: &str) -> Option<Uri> {
#[tokio::main]
async fn main() -> Result<()> {
#[cfg(not(debug_assertions))]
let version = "0.1.10";
let version = "0.1.11";
#[cfg(debug_assertions)]
let version = "0.1.10-debug";
let version = "0.1.11-debug";
let matches = App::new("Chomp")
.version(version)
.arg(
Expand Down

0 comments on commit 3dfcda0

Please sign in to comment.