mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-05 02:55:31 +00:00
CI: chore: rename jobs and workflow files
This commit is contained in:
parent
48f83e75f7
commit
534d39c069
@ -1,4 +1,8 @@
|
||||
name: create-draft-release-with-artifacts
|
||||
# we have two workflows for releases, this is the manual one to be triggered
|
||||
# in the Actions tab in the repository
|
||||
#
|
||||
# the automatic one runs in another workflow and checks for tag pushes
|
||||
name: manual-trigger-draft-release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@ -8,8 +12,7 @@ on:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
github-release:
|
||||
name: github-release
|
||||
create-draft-release-from-manual-trigger:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
@ -1,4 +1,4 @@
|
||||
name: PR checks
|
||||
name: PR workflow
|
||||
|
||||
on:
|
||||
push:
|
||||
@ -11,8 +11,7 @@ on:
|
||||
- "*.md"
|
||||
|
||||
jobs:
|
||||
clippy-lints-check:
|
||||
name: clippy-lints-check
|
||||
clippy-checks:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@ -24,7 +23,6 @@ jobs:
|
||||
cargo +stable clippy -- -D warnings
|
||||
|
||||
rustfmt-check:
|
||||
name: rustfmt-check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@ -35,11 +33,10 @@ jobs:
|
||||
rustup toolchain install nightly --profile minimal -c rustfmt
|
||||
cargo +nightly fmt -- --check
|
||||
|
||||
github-release:
|
||||
name: github-release
|
||||
automated-draft-release:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
||||
needs: build-and-test
|
||||
needs: build-artifacts-and-run-tests
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@ -58,8 +55,7 @@ jobs:
|
||||
draft: true
|
||||
files: release/ouch-*
|
||||
|
||||
build-and-test:
|
||||
name: build-and-test
|
||||
build-artifacts-and-run-tests:
|
||||
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
|
||||
env:
|
||||
CARGO: cargo
|
Loading…
x
Reference in New Issue
Block a user