Skip to content

Commit

Permalink
chore: don't use a dedicated action to publish comtrya
Browse files Browse the repository at this point in the history
- publish "comtrya-lib" before "comtrya"
- bump Ubuntu to 22.04
  • Loading branch information
icepuma committed Oct 18, 2023
1 parent 07f3e10 commit 67d1ebc
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:

jobs:
lint-test-release:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Clone Repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -54,12 +54,17 @@ jobs:
unset IS_RELEASE ; if [[ $GITHUB_REF =~ ^refs/tags/v[0-9].* ]]; then IS_RELEASE='true' ; fi
echo ::set-output name=IS_RELEASE::${IS_RELEASE}
- name: Cargo Publish
uses: katyo/publish-crates@v2
- name: Cargo Publish "comtrya-lib"
if: steps.is-release.outputs.IS_RELEASE
with:
args: --allow-dirty
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish -p comtrya-lib --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

- name: Cargo Publish "comtrya"
if: steps.is-release.outputs.IS_RELEASE
run: cargo publish -p comtrya --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

build:
name: build-${{ matrix.job.target }}
Expand Down

0 comments on commit 67d1ebc

Please sign in to comment.