23 lines
526 B
YAML
23 lines
526 B
YAML
|
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
|