diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..79ded27 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +on: + push: + tags: + - '*' + workflow_dispatch: + +name: Publish to crates.io + +jobs: + publish: + name: Publish + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - run: cargo publish --token ${CRATES_TOKEN} + env: + CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index 350b759..b60bd02 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,13 @@ [package] name = "mediawiki" version = "0.0.1" +description = "Rust crate to interface with the MediaWiki API, with special sauce for the Official Feed The Beast Wiki's extensions" authors = ["Peter Atashian "] license = "MIT/Apache-2.0" edition = "2018" +homepage = "https://github.com/FTB-Gamepedia/mediawiki-rs" +repository = "https://github.com/FTB-Gamepedia/mediawiki-rs" +readme = "README.md" [dependencies] cookie = "0.15"