chore: Setup initial version of build/publish GitHub Actions
This commit is contained in:
parent
867f5dfe53
commit
bacdea35f6
2 changed files with 40 additions and 0 deletions
17
.github/workflows/build.yml
vendored
Normal file
17
.github/workflows/build.yml
vendored
Normal file
|
@ -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
|
23
.github/workflows/publish.yml
vendored
Normal file
23
.github/workflows/publish.yml
vendored
Normal file
|
@ -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
|
Loading…
Reference in a new issue