Skip to content

Commit

Permalink
fix trigger for CI workflow and remove auto publish to crates.io for …
Browse files Browse the repository at this point in the history
…now (#471)

Co-authored-by: henil <henil@gmail.com>
  • Loading branch information
henil and henil committed Sep 30, 2022
1 parent 6436a6f commit b1e6b66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 32 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/publish.yml

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Releaser
on:
push:
tags:
- 'v*.*.*'
- 'R*'

jobs:
build-release:
Expand Down Expand Up @@ -43,20 +43,20 @@ 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
env:
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:
Expand All @@ -68,4 +68,4 @@ jobs:
id: create_release
uses: softprops/action-gh-release@v1
with:
prerelease: false
prerelease: false

0 comments on commit b1e6b66

Please sign in to comment.