added branch to the branches that trigger the docker action
This commit is contained in:
45
.github/workflows/docker.yml
vendored
45
.github/workflows/docker.yml
vendored
@@ -1,32 +1,29 @@
|
|||||||
name: Docker
|
name: Docker
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: ["main", "feature/docker"]
|
||||||
paths:
|
pull_request:
|
||||||
- 'Cargo.toml'
|
branches: ["main"]
|
||||||
pull_request:
|
|
||||||
branches: [ "main" ]
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
steps:
|
- name: Build Docker image
|
||||||
- uses: actions/checkout@v4
|
run: |
|
||||||
- name: Build Docker image
|
apt install -y nu
|
||||||
run: |
|
version=$(nu -c "cargo metadata --format-version=1 --no-deps | from json | get packages | first | get version")
|
||||||
apt install -y nu
|
echo $version
|
||||||
version=$(nu -c "cargo metadata --format-version=1 --no-deps | from json | get packages | first | get version")
|
- name: Run tests
|
||||||
echo $version
|
run: cargo test --verbose
|
||||||
- name: Run tests
|
- name: Publish to crates.io
|
||||||
run: cargo test --verbose
|
env:
|
||||||
- name: Publish to crates.io
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
|
||||||
env:
|
run: |
|
||||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
|
cargo publish --verbose
|
||||||
run: |
|
|
||||||
cargo publish --verbose
|
|
||||||
|
|||||||
Reference in New Issue
Block a user