From 40ded0212de60201eca59e2fd6d9f2a557c73676 Mon Sep 17 00:00:00 2001 From: Luni-4 Date: Fri, 4 Oct 2019 11:25:24 +0200 Subject: [PATCH] Add cargo-publish job --- .github/workflows/cpal.yml | 16 ++++++++++++++++ .travis.yml | 28 ---------------------------- 2 files changed, 16 insertions(+), 28 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/cpal.yml b/.github/workflows/cpal.yml index 41dd9bd..90411f2 100644 --- a/.github/workflows/cpal.yml +++ b/.github/workflows/cpal.yml @@ -19,6 +19,22 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} args: --all --all-features + cargo-publish: + + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Run cargo publish + env: + MANIFEST: alsa-sys/Cargo.toml + CRATESIO_TOKEN: ${{ secrets.CRATESIO_TOKEN }} + run: | + cargo publish --token $CRATESIO_TOKEN --manifest-path $MANIFEST + cargo publish --token $CRATESIO_TOKEN + ubuntu-test: runs-on: ubuntu-latest diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5d55ca0..0000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -language: rust -sudo: false - -cache: cargo - -addons: - apt: - packages: - - libasound2-dev - -os: - - linux - - osx - -env: - global: - - secure: "ZGNi7bKoxNIziWzdNP1QbH6ZbeWDInq42yq1rzWY71I/pi8yA4zjVAYdgXKElc0saB0d2TxJCwpeGVyXwuXXeNoud8HWsqQxhNVMM8K27a2jeezza8UCCJ7kAS6E/+gQj7w+HFtgWiUHZ0KEjGONqXJM+cWqH5oprTEuNBOPqDA=" - - secure: "H7JRHaCkm6NvmMU76pNUyK5fj8d0kEb1snGCTcC4ZdW98P5qSEDbMBOKZgSW0DNhKmzYS1qHHAXlmm9c9JCVYfeErL9JeTrRk4DvIO8sH3ImhHIB/q4U+h+hxZ6W+dGpTi0kjQ5ZS3z+Mlr/9CB4UT83HmF78Zfyf6KA15esUIQ=" - -after_success: - - | - [ $TRAVIS_BRANCH = master ] && - [ $TRAVIS_PULL_REQUEST = false ] && - cargo publish --token ${CRATESIO_TOKEN} --manifest-path alsa-sys/Cargo.toml - - | - [ $TRAVIS_BRANCH = master ] && - [ $TRAVIS_PULL_REQUEST = false ] && - cargo publish --token ${CRATESIO_TOKEN}