v2024.6.0 #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
release: | |
types: [published] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
release: | |
runs-on: ubuntu-latest-8-cores | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup-git-credentials | |
uses: de-vri-es/setup-git-credentials@v2 | |
with: | |
credentials: "https://fiberplanebot:${{ secrets.PRIVATE_GITHUB_TOKEN }}@github.com/" | |
- name: Install latest stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
target: wasm32-unknown-unknown | |
components: rustfmt, clippy | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Compile providers | |
run: | | |
cargo xtask build all --exclude=sample | |
- name: Attach providers to release | |
uses: meeDamian/[email protected] | |
with: | |
allow_override: true | |
token: ${{ secrets.GITHUB_TOKEN }} | |
files: providers:artifacts/ | |
- name: Cargo login | |
uses: actions-rs/cargo@v1 | |
with: | |
command: login | |
args: ${{ secrets.CRATES_TOKEN }} | |
- name: Publish PDK crates | |
run: cargo xtask publish |