forked from aldanor/hdf5-rust
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from magnusuMET/release_workflow
Release workflow
- Loading branch information
Showing
7 changed files
with
58 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "hdf5-src-v*" | ||
- "hdf5-sys-v*" | ||
- "hdf5-derive-v*" | ||
- "hdf5-types-v*" | ||
- "hdf5-v*" | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
release: | ||
name: release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Install libhdf5 | ||
run: sudo apt-get update && sudo apt-get install libhdf5-dev | ||
- name: Install rust | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
- name: Publish hdf5-src | ||
if: "${{ startsWith(github.ref_name, 'hdf5-src-v') }}" | ||
run: cargo publish --package hdf5-metno-src --token "${{ secrets.CRATES_IO_TOKEN }}" | ||
- name: Publish hdf5-sys | ||
if: "${{ startsWith(github.ref_name, 'hdf5-sys-v') }}" | ||
run: cargo publish --package hdf5-metno-sys --token "${{ secrets.CRATES_IO_TOKEN }}" | ||
- name: Publish hdf5-derive | ||
if: "${{ startsWith(github.ref_name, 'hdf5-metno-derive-v') }}" | ||
run: cargo publish --package hdf5-metno-derive --token "${{ secrets.CRATES_IO_TOKEN }}" | ||
- name: Publish hdf5-types | ||
if: "${{ startsWith(github.ref_name, 'hdf5-metno-types-v') }}" | ||
run: cargo publish --package hdf5-metno-types --token "${{ secrets.CRATES_IO_TOKEN }}" | ||
- name: Publish hdf5 | ||
if: "${{ startsWith(github.ref_name, 'hdf5-v') }}" | ||
run: cargo publish --package hdf5-metno --token "${{ secrets.CRATES_IO_TOKEN }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ members = ["hdf5", "hdf5-types", "hdf5-derive", "hdf5-sys", "hdf5-src"] | |
default-members = ["hdf5", "hdf5-types", "hdf5-derive", "hdf5-sys"] | ||
|
||
[workspace.package] | ||
version = "0.9.2" # !V | ||
rust-version = "1.80.0" | ||
authors = [ | ||
"Ivan Smirnov <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters