From 8b7990b9a912ede981bef3eda51512f3a9e7dbcc Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Tue, 24 Jan 2023 21:11:04 -0500 Subject: [PATCH] Auto-publish to crates.io --- .github/workflows/publish.yaml | 28 ++++++++++++++++++++++++++++ CHANGELOG.md | 4 ++++ 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..333a5e3 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,28 @@ +name: Publish + +on: + push: + branches: + - "main" + workflow_dispatch: + +jobs: + publish: + name: Publish + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + profile: minimal + + - name: Publish to crates.io + uses: katyo/publish-crates@v1 + with: + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + ignore-unpublished-changes: true diff --git a/CHANGELOG.md b/CHANGELOG.md index bedc516..2289491 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## `0.1.2` - January 24th, 2023 +### Added + +- Added automatic publishing of the Lune library to [crates.io](https://crates.io/crates/lune) + ### Fixed - Fixed scripts that terminate instantly sometimes hanging