diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..6c44f71 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,17 @@ +on: push + +name: Build + +jobs: + build_and_test: + name: Build cloudflare-ddns + runs-on: ubuntu-latest + steps: + - name: Checkout latest + uses: actions/checkout@master + - name: Cargo build + uses: actions-rs/cargo@v1 + with: + toolchain: nightly + command: build + arguments: --release \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..4dd462c --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,23 @@ +on: + push: + - master + +name: Publish to crates.io + +jobs: + build_and_test: + name: Publish cloudflare-ddns + runs-on: ubuntu-latest + steps: + - name: Checkout latest master + uses: actions/checkout@master + - name: Login to crates.io + uses: actions-rs/cargo@v1 + with: + toolchain: nightly + command: login ${{ secrets.CRATES_TOKEN }} + - name: Publish to crates.io + uses: actions-rs/cargo@v1 + with: + toolchain: nightly + command: publish \ No newline at end of file