4 Commits

Author SHA1 Message Date
bb82dad4cf added paths to triggers 2025-11-09 21:09:37 +01:00
303309fff9 renamed existing deploy workflows. added testing workflow 2025-11-09 21:07:59 +01:00
6d2f76eb72 removed workflows from pullrequest trigger 2025-11-09 19:33:04 +01:00
451015d2f2 Merge pull request #5 from quirinecker/develop
Docki is now using cdn for Revealjs
2025-11-09 19:31:38 +01:00
4 changed files with 54 additions and 32 deletions

View File

@@ -1,12 +1,10 @@
name: Docker name: Deploy Docker Image to Github Container Registry
on: on:
push: push:
branches: ["main"] branches: ["main"]
paths: paths:
- "Cargo.toml" - "Cargo.toml"
pull_request:
branches: ["main"]
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always

View File

@@ -1,29 +0,0 @@
name: Rust
on:
push:
branches: [ "main" ]
paths:
- 'Cargo.toml'
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Publish to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
run: |
cargo publish --verbose

26
.github/workflows/rust_deploy.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Deploy Rust to Crates.io
on:
push:
branches: ["main"]
paths:
- "Cargo.toml"
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Publish to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
run: |
cargo publish --verbose

27
.github/workflows/rust_test.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: Test Rust
on:
push:
branches: ["main", "develop"]
paths:
- "./src/**"
- "./Cargo.toml"
pull_request:
branches: ["main", "develop"]
paths:
- "./src/**"
- "./Cargo.toml"
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose