Skip to content

Commit

Permalink
fix: Update CD workflow to use updated version of Cargo.toml (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
poppoerika authored Apr 11, 2022
1 parent dc71b03 commit 005adaf
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,6 @@ jobs:
version: ${{ steps.release.outputs.release }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
override: true

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.x"

- name: Set release
id: semrel
uses: go-semantic-release/action@v1
Expand All @@ -44,15 +33,6 @@ jobs:
allow-initial-development-versions: true
force-bump-patch-version: true

- name: Update Cargo Version
run: |
chmod +x set_cargo_version.sh
./set_cargo_version.sh ${{ steps.semrel.outputs.version }}
shell: bash

- name: Build
run: cargo build --verbose

- name: Output release
id: release
run: echo "::set-output name=release::${{ steps.semrel.outputs.version }}"
Expand All @@ -65,10 +45,25 @@ jobs:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
override: true

- name: Build
run: cargo build --verbose

- name: Integration Tests
run: cargo test --tests

- name: Update Cargo Version
run: |
chmod +x set_cargo_version.sh
./set_cargo_version.sh ${{ needs.release.outputs.version }}
cat Cargo.toml
shell: bash

- name: Login to crates.io
run: cargo login $CARGO_REGISTRY_TOKEN

Expand Down

0 comments on commit 005adaf

Please sign in to comment.