From b1e6b6609c0e6a7dd73c54ded69613c0ced75de5 Mon Sep 17 00:00:00 2001 From: Henil Dedania Date: Fri, 30 Sep 2022 19:22:02 +0530 Subject: [PATCH] fix trigger for CI workflow and remove auto publish to crates.io for now (#471) Co-authored-by: henil --- .github/workflows/publish.yml | 26 -------------------------- .github/workflows/release.yml | 12 ++++++------ 2 files changed, 6 insertions(+), 32 deletions(-) delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index e68b6f7a3..000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,26 +0,0 @@ -on: - release: - types: [published] - -name: Publish to crates.io - -jobs: - publish: - name: Publish crates - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - - uses: katyo/publish-crates@v1 - name: Publish rumqttc - with: - path: './rumqttc' - registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} - - uses: katyo/publish-crates@v1 - name: Publish rumqttd - with: - path: './rumqttd' - registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 899f7557c..b0f3f2e36 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: Releaser on: push: tags: - - 'v*.*.*' + - 'R*' jobs: build-release: @@ -43,11 +43,11 @@ jobs: echo "TARGET_DIR=./target/${{ matrix.target }}" >> $GITHUB_ENV - name: Build release binary - run: cross build --verbose --release ${{ env.TARGET_FLAGS }} -p rumqttd-ng + run: cross build --verbose --release ${{ env.TARGET_FLAGS }} -p rumqttd - name: Strip release binary (linux) if: matrix.build == 'linux-gnu' || matrix.build == 'linux-musl' - run: strip "${{ env.TARGET_DIR }}/release/rumqttd-ng" + run: strip "${{ env.TARGET_DIR }}/release/rumqttd" - name: Upload release archive uses: actions/upload-release-asset@v1.0.2 @@ -55,8 +55,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ needs.create-release.outputs.upload_url }} - asset_path: ${{ env.TARGET_DIR }}/release/rumqttd-ng - asset_name: rumqttd-ng-${{matrix.target}} + asset_path: ${{ env.TARGET_DIR }}/release/rumqttd + asset_name: rumqttd-${{matrix.target}} asset_content_type: application/octet-stream create-release: @@ -68,4 +68,4 @@ jobs: id: create_release uses: softprops/action-gh-release@v1 with: - prerelease: false \ No newline at end of file + prerelease: false