2019-09-17 20:12:45 +00:00
|
|
|
on:
|
|
|
|
push:
|
2019-09-17 23:02:57 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2019-09-17 20:12:45 +00:00
|
|
|
|
|
|
|
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
|
2019-09-17 22:53:54 +00:00
|
|
|
- name: Install nightly toolchain
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
|
|
|
override: true
|
2019-09-17 20:12:45 +00:00
|
|
|
- name: Login to crates.io
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
2019-09-17 23:49:39 +00:00
|
|
|
command: login
|
2019-09-18 12:31:12 +00:00
|
|
|
args: ${{ secrets.CRATES_TOKEN }}
|
2019-09-17 20:12:45 +00:00
|
|
|
- name: Publish to crates.io
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
|
|
|
command: publish
|