mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 21:21:10 +00:00
CI: update release scripts
This commit is contained in:
parent
d1bc26e228
commit
4d00f9be4b
3 changed files with 25 additions and 2 deletions
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
@ -18,14 +18,14 @@ jobs:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
cargo-publish:
|
cargo-publish:
|
||||||
runs-on: windows-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: publish
|
- name: publish
|
||||||
run: |
|
run: |
|
||||||
rustup update stable
|
rustup update stable
|
||||||
cargo login ${{ secrets.CARGO_TOKEN }}
|
cargo login ${{ secrets.CARGO_TOKEN }}
|
||||||
./cargo-publish.bat
|
./cargo-publish.sh
|
||||||
|
|
||||||
upload-assets:
|
upload-assets:
|
||||||
needs: create-release
|
needs: create-release
|
||||||
|
|
12
.github/workflows/rust.yml
vendored
12
.github/workflows/rust.yml
vendored
|
@ -74,3 +74,15 @@ jobs:
|
||||||
with:
|
with:
|
||||||
command: clippy
|
command: clippy
|
||||||
args: --all --all-targets --verbose -- -D warnings
|
args: --all --all-targets --verbose -- -D warnings
|
||||||
|
|
||||||
|
publish-nightly:
|
||||||
|
runs-on: ubuntus-latest
|
||||||
|
if: contains(github.event.head_commit.message, 'update version (nightly')
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
- run: rustup update stable
|
||||||
|
- name: cargo publish
|
||||||
|
run: |
|
||||||
|
cargo login ${{ secrets.CARGO_TOKEN }}
|
||||||
|
./cargo-publish.sh
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
cd crates/erg_common
|
||||||
|
cargo publish
|
||||||
|
cd ../erg_parser
|
||||||
|
cargo publish
|
||||||
|
cd ../erg_compiler
|
||||||
|
cargo publish
|
||||||
|
cd ../els
|
||||||
|
cargo publish
|
||||||
|
cd ../../
|
||||||
|
cargo publish
|
||||||
|
echo done
|
Loading…
Add table
Add a link
Reference in a new issue