Skip to content

Commit

Permalink
Update CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyhedral committed Jan 4, 2025
1 parent 9536aca commit b6160c4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,6 @@ jobs:
use-cross: true
command: test
args: --verbose --release --target ${{ matrix.target }}
- name: Bump version and push tag
id: bump_version
uses: anothrNick/github-tag-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: false
DEFAULT_BUMP: patch
- name: Update Cargo.toml
run: |
sed -i 's/^version = ".*"$/version = "'${{ steps.bump_version.outputs.new_tag }}'"/' Cargo.toml
- name: Commit and push
run: |
git config --global user.email "[email protected]"
git config --global user.name "SweetRPG CI"
git add Cargo.toml
git commit -m "Update Cargo.toml on ${{ github.ref_name }} with version: ${{ steps.bump_version.outputs.new_tag }}"
git push origin

docs:
needs: [tests]
Expand Down Expand Up @@ -112,6 +95,23 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_API_KEY }}
- name: Bump version and push tag
id: bump_version
uses: anothrNick/github-tag-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: false
DEFAULT_BUMP: patch
- name: Update Cargo.toml
run: |
sed -i 's/^version = ".*"$/version = "'${{ steps.bump_version.outputs.new_tag }}'"/' Cargo.toml
- name: Commit and push
run: |
git config --global user.email "[email protected]"
git config --global user.name "SweetRPG CI"
git add Cargo.toml
git commit -m "Update Cargo.toml on ${{ github.ref_name }} with version: ${{ steps.bump_version.outputs.new_tag }}"
git push origin --tags
notify:
needs: [release]
Expand Down
4 changes: 4 additions & 0 deletions src/vo/property.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* Property value object.
* @paulyhedral
*/
use serde::{Serialize, Deserialize};

/// Value object for properties.
Expand Down

0 comments on commit b6160c4

Please sign in to comment.