Skip to content

Commit

Permalink
publish crate after release is created
Browse files Browse the repository at this point in the history
  • Loading branch information
magnickolas committed Jul 29, 2024
1 parent 8995d5f commit dbf2add
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
- "*"

jobs:
init:
init-release:
name: Initialize release
runs-on: ubuntu-latest
outputs:
release-version: ${{ steps.init.outputs.release-version }}
Expand All @@ -25,9 +26,9 @@ jobs:
echo "targets=${TARGETS}" >> "$GITHUB_OUTPUT"
build-release:
name: build-release
name: Build release
runs-on: ${{ matrix.os }}
needs: init
needs: init-release
env:
STAGING: remindee-bot-${{ needs.init.outputs.release-version }}-${{ matrix.target }}
BINARY_PATH: target/${{ matrix.target }}/release/${{ matrix.binary }}
Expand Down Expand Up @@ -122,7 +123,7 @@ jobs:

create-release:
name: create-release
needs: [init, build-release]
needs: build-release
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -159,6 +160,7 @@ jobs:
publish-crate:
name: Publish tagged release on crates.io
needs: create-release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
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
@@ -1,6 +1,6 @@
[package]
name = "remindee-bot"
version = "0.2.8"
version = "0.2.9"
authors = ["Nikolai Oplachko <[email protected]>"]
edition = "2021"
license = "GPL-3.0-only"
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
project = "remindee-bot"
copyright = "2024, Nikolai Oplachko"
author = "Nikolai Oplachko"
release = "0.2.8"
release = "0.2.9"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down

0 comments on commit dbf2add

Please sign in to comment.