35 lines
884 B
YAML
35 lines
884 B
YAML
name: Crates.io
|
|
on:
|
|
release:
|
|
types:
|
|
- created
|
|
jobs:
|
|
publish:
|
|
name: Publish
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: main
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
override: true
|
|
- name: Run build
|
|
run: cargo build --release --verbose
|
|
- name: Run cargo login
|
|
shell: pwsh
|
|
run: cargo login $Env:CRATES_IO_TOKEN
|
|
env:
|
|
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
|
|
- name: Run publish simconnect-sdk-derive
|
|
shell: pwsh
|
|
run: cargo make simconnect-sdk-publish-derive
|
|
- name: Sleep for 30 seconds
|
|
shell: pwsh
|
|
run: Start-Sleep -s 30
|
|
- name: Run publish simconnect-sdk
|
|
shell: pwsh
|
|
run: cargo make simconnect-sdk-publish
|