diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 454f84c..4de5319 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,7 +21,8 @@ jobs: uses: actions-rs/cargo@v1 with: toolchain: nightly - command: login ${{ secrets.CRATES_TOKEN }} + command: login + arguments: ${{ secrets.CRATES_TOKEN }} - name: Publish to crates.io uses: actions-rs/cargo@v1 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f309bed..5fa2bdd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - return context.payload.ref.replace(/\/refs\/tags\//, ''); + return context.payload.ref.split('/')[2]; - name: Archive run: tar cfJ cloudflare-ddns-${{ steps.version.outputs.result }}.tar.xz target/cloudflare-ddns - name: Create release diff --git a/Cargo.lock b/Cargo.lock index 10e5f4b..4d45842 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -153,7 +153,7 @@ dependencies = [ [[package]] name = "cloudflare-ddns" -version = "0.1.0" +version = "0.1.1" dependencies = [ "exitcode 1.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 958ba67..49c221b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cloudflare-ddns" -version = "0.1.0" +version = "0.1.1" authors = ["Rostislav Raykov "] edition = "2018" description = "A simple CLI tool to use Cloudflare's free DDNS service" diff --git a/README.md b/README.md new file mode 100644 index 0000000..a0172bd --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# CloudFlare DDNS update tool + +This is a simple CLI you can use to continuously update an A DNS record for a domain using CloudFlare's free DDNS service. + +# TODO + +Write about usage and CloudFlare setup \ No newline at end of file