Skip to content

Commit

Permalink
Update workflows to publish crates separately
Browse files Browse the repository at this point in the history
  • Loading branch information
alknemeyer committed Feb 28, 2023
1 parent 9804a82 commit 98672a1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on:
push:
# Run on new versions.
tags:
- 'v.*'
- 'ecal-derive-v.*'
workflow_dispatch:

name: Publish
Expand All @@ -26,8 +26,3 @@ jobs:
cargo publish --token ${{ secrets.CRATES_IO_TOKEN || github.token }} -p ecal-derive
env:
CRATES_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}

- name: publish eCAL crate
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN || github.token }} -p ecal
env:
CRATES_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
27 changes: 27 additions & 0 deletions .github/workflows/publish-ecal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
push:
# Run on new versions.
tags:
- 'ecal-v.*'
workflow_dispatch:

name: Publish
jobs:
publish:
name: Publish crates to crates.io
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: kopernikusauto/[email protected]

- name: Install stable toolchain
uses: kopernikusauto/[email protected]
with:
profile: minimal
toolchain: stable
override: true

- name: publish ecal
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN || github.token }} -p ecal
env:
CRATES_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}

0 comments on commit 98672a1

Please sign in to comment.