Skip to content

Commit

Permalink
change version on build
Browse files Browse the repository at this point in the history
  • Loading branch information
Zwiterrion committed Feb 8, 2024
1 parent 61bc984 commit f25d521
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v4

- name: Update server package.json version
uses: jossef/[email protected]
with:
file: server/package.json
field: version
value: ${{ inputs.version }}

- name: Update ui package.json version
uses: jossef/[email protected]
with:
file: ui/package.json
field: version
value: ${{ inputs.version }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand Down Expand Up @@ -71,7 +85,14 @@ jobs:
toolchain:
- stable
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Edit Toml
uses: ciiiii/[email protected]
with:
working-directory: "./cli"
file: "Cargo.toml"
key: "version"
value: ${{ inputs.version }}
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
Expand Down Expand Up @@ -103,7 +124,14 @@ jobs:
run:
working-directory: ./cli
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Edit Toml
uses: ciiiii/[email protected]
with:
working-directory: "./cli"
file: "Cargo.toml"
key: "version"
value: ${{ inputs.version }}
- name: Build
run: cargo build --verbose --release
- name: Run tests
Expand Down

0 comments on commit f25d521

Please sign in to comment.