2022-07-28 04:42:38 +08:00
|
|
|
name: publish
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish-burn-tensor:
|
|
|
|
name: publish-burn-tensor
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2022-08-01 00:06:25 +08:00
|
|
|
- name: install rust nightly
|
2022-07-28 04:42:38 +08:00
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
2022-08-01 00:06:25 +08:00
|
|
|
toolchain: nightly
|
|
|
|
components: rustfmt
|
2022-07-28 04:42:38 +08:00
|
|
|
override: true
|
|
|
|
|
|
|
|
- name: publish burn-tensor to crates.io
|
|
|
|
run: ./ci/publish.sh burn-tensor
|
|
|
|
env:
|
|
|
|
CRATES_IO_API_TOKEN: ${{ secrets.CRATES_IO_API_TOKEN }}
|
|
|
|
|
2022-09-05 02:22:56 +08:00
|
|
|
publish-burn-dataset:
|
2022-07-28 04:42:38 +08:00
|
|
|
needs: publish-burn-tensor
|
2022-09-05 02:22:56 +08:00
|
|
|
name: publish-burn-dataset
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: install rust nightly
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: nightly
|
|
|
|
components: rustfmt
|
|
|
|
override: true
|
|
|
|
|
|
|
|
- name: publish burn-dataset to crates.io
|
|
|
|
run: ./ci/publish.sh burn-dataset
|
|
|
|
env:
|
|
|
|
CRATES_IO_API_TOKEN: ${{ secrets.CRATES_IO_API_TOKEN }}
|
|
|
|
|
|
|
|
publish-burn:
|
|
|
|
needs: publish-burn-dataset
|
2022-07-28 04:42:38 +08:00
|
|
|
name: publish-burn
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2022-08-01 00:06:25 +08:00
|
|
|
- name: install rust nightly
|
2022-07-28 04:42:38 +08:00
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
2022-08-01 00:06:25 +08:00
|
|
|
toolchain: nightly
|
|
|
|
components: rustfmt
|
2022-07-28 04:42:38 +08:00
|
|
|
override: true
|
|
|
|
|
|
|
|
- name: publish burn to crates.io
|
|
|
|
run: ./ci/publish.sh burn
|
|
|
|
env:
|
|
|
|
CRATES_IO_API_TOKEN: ${{ secrets.CRATES_IO_API_TOKEN }}
|