diff --git a/.github/workflows/cargo_publish.yml b/.github/workflows/cargo_publish.yml new file mode 100644 index 0000000..0317c0e --- /dev/null +++ b/.github/workflows/cargo_publish.yml @@ -0,0 +1,27 @@ +name: Cargo publish + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + publish: + if: startsWith(github.ref, 'refs/tags/v') + name: Publish Cargo Package + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - run: cargo login $CARGO_LOGIN + - run: cargo publish + env: + CARGO_LOGIN: ${{ secrets.CARGO_LOGIN}} + diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..3235bd1 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,22 @@ +on: [push, pull_request] + +name: check + +jobs: + check: + name: Check + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v1 + + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + - name: Run cargo check + uses: actions-rs/cargo@v1 + with: + command: check diff --git a/Cargo.toml b/Cargo.toml index bb0100d..98d2261 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,7 @@ [package] name = "mdbook-yml-header" version = "0.1.0" -authors = [ - "Dmitrij Vogt " -] +authors = ["Vogt, Dimitrij "] documentation = "https://github.com/dvogt23/mdBook-yml-header/README.md" edition = "2021" keywords = ["book", "gitbook", "rustbook", "markdown", "preprocessor"]