Skip to content

Commit 084827f

Browse files
Auto-publish package from GH Actions
1 parent f5302f5 commit 084827f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/build.yml

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ jobs:
1717
id: current_tag
1818
uses: WyriHaximus/github-action-get-previous-tag@v1
1919

20+
- name: Release package
21+
run: cargo publish --no-verify --token ${CRATES_TOKEN}
22+
env:
23+
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
24+
2025
- name: Release new version
2126
uses: softprops/action-gh-release@v1
2227
with:

PACKAGING.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ We consider here the packaging flow of Sonic version `1.0.0` for Linux.
99
1. Bump version in `Cargo.toml` to `1.0.0`
1010
2. Execute `cargo update` to bump `Cargo.lock`
1111

12-
2. **How to update Sonic on Crates:**
13-
1. Publish package on Crates: `cargo publish --no-verify`
14-
15-
3. **How to build Sonic, package it and release it on GitHub and Docker Hub (multiple architectures):**
12+
2. **How to build Sonic, package it and release it on Crates, GitHub and Docker Hub (multiple architectures):**
1613
1. Tag the latest Git commit corresponding to the release with tag `v1.0.0`, and push the tag
1714
2. Wait for all release jobs to complete on the [actions](https://github.com/valeriansaliou/sonic/actions) page on GitHub
1815
3. Publish a changelog on the [releases](https://github.com/valeriansaliou/sonic/releases) page on GitHub

0 commit comments

Comments
 (0)