Skip to content

Commit

Permalink
updating ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-samson committed Jan 23, 2024
1 parent e545548 commit ca1c7eb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build
run: cargo build --release --verbose
- name: rust-clippy-check
Expand All @@ -46,7 +46,7 @@ jobs:
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Generate code coverage
run: |
Expand Down
38 changes: 13 additions & 25 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build
run: cargo build --release --verbose
- name: rust-clippy-check
Expand All @@ -29,7 +29,7 @@ jobs:
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Generate code coverage
run: |
Expand All @@ -46,26 +46,14 @@ jobs:
runs-on: ubuntu-latest
if: ( github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' )
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: install cargo release
run: if [ ! -f ~/.cargo/bin/cargo-release ]; then cargo install cargo-release; fi;
- name: cargo release
run: |
git config --global user.name 'Git Hub Actions (rust)'
git config --global user.email '[email protected] '
cargo release patch --execute --no-confirm --token $CARGO_REGISTRY_TOKEN
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- uses: actions/checkout@v3
- uses: chainguard-dev/actions/setup-gitsign@main
- name: Install cargo-release
uses: taiki-e/install-action@v1
with:
tool: cargo-release

- uses: cargo-bins/release-pr@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ inputs.version }}

0 comments on commit ca1c7eb

Please sign in to comment.