diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d36035b..bea47cf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -89,33 +89,34 @@ jobs: uses: actions/upload-artifact@v4 with: name: cardamon-${{ matrix.os }} - path: uploads/cardamon-${{ matrix.target }}-${{ github.ref_name }}.${{ matrix.archive_ext }} - - publish_crate: - needs: [build] - runs-on: ubuntu-latest - steps: - - name: Checkout cardamon - uses: actions/checkout@v4 - with: - submodules: recursive - - - name: Setup NodeJS - uses: actions/setup-node@v4 - with: - node-version: "20.x" - - - name: Build UI - run: cd ui && npm install && npm run build:release - - - name: Setup Rust - uses: actions-rust-lang/setup-rust-toolchain@v1 - - - name: Build Cardamon - run: cargo publish --no-verify --allow-dirty --token ${{ secrets.CRATES_IO_TOKEN }} + path: uploads/ + + # publish_crate: + # needs: [build] + # runs-on: ubuntu-latest + # steps: + # - name: Checkout cardamon + # uses: actions/checkout@v4 + # with: + # submodules: recursive + # + # - name: Setup NodeJS + # uses: actions/setup-node@v4 + # with: + # node-version: "20.x" + # + # - name: Build UI + # run: cd ui && npm install && npm run build:release + # + # - name: Setup Rust + # uses: actions-rust-lang/setup-rust-toolchain@v1 + # + # - name: Build Cardamon + # run: cargo publish --no-verify --allow-dirty --token ${{ secrets.CRATES_IO_TOKEN }} release: - needs: [publish_crate] + # needs: [publish_crate] + needs: [build] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -128,6 +129,13 @@ jobs: pattern: cardamon-* merge-multiple: true - name: Create release - run: gh release create ${{ github.ref_name }} --draft --title "Release ${{ github.ref_name }}" --notes "" artifacts/cardamon-x86_64-unknown-linux-gnu-${{ github.ref_name }}.tgz artifacts/cardamon-x86_64-pc-windows-msvc-${{ github.ref_name }}.zip artifacts/cardamon-aarch64-apple-darwin-${{ github.ref_name }}.tgz + run: | + gh release create ${{ github.ref_name }} --draft --title "Release ${{ github.ref_name }}" --notes "" | + artifacts/cardamon-x86_64-unknown-linux-gnu-${{ github.ref_name }}.tgz | + artifacts/cardamon-x86_64-unknown-linux-gnu-${{ github.ref_name }}.tgz.sha256 | + artifacts/cardamon-x86_64-pc-windows-msvc-${{ github.ref_name }}.zip | + artifacts/cardamon-x86_64-pc-windows-msvc-${{ github.ref_name }}.zip.sha256 | + artifacts/cardamon-aarch64-apple-darwin-${{ github.ref_name }}.tgz | + artifacts/cardamon-aarch64-apple-darwin-${{ github.ref_name }}.tgz.sha256 env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}