Skip to content

Commit

Permalink
adding checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
ohuu committed Aug 27, 2024
1 parent 6a53fb9 commit e68bbb2
Showing 1 changed file with 34 additions and 26 deletions.
60 changes: 34 additions & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit e68bbb2

Please sign in to comment.