diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6d1b1ae..57099ec 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,17 +24,16 @@ jobs: - name: Publish CLI run: cargo publish --manifest-path kalk_cli/Cargo.toml --token ${{ secrets.CARGO_REGISTRY_TOKEN }} --verbose - release_ubuntu: - runs-on: ubuntu-latest - + release: + name: release ${{ matrix.target }} + runs-on: ${{ matrix.target }} + strategy: + matrix: + target: [ubuntu-latest, macos-latest] steps: - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false + - uses: actions/checkout@master + - name: Compile and release + uses: PaddiM8/rust-build.action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + EXTRA_FILES: "README.md LICENSE"