You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
name: Publish Cargo package
|
|
|
|
run-name: ${{ github.actor }} is building ${{ github.repository }}
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Publish-Cargo:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
|
|
|
|
- run: echo "This job is now running on a ${{ runner.os }}."
|
|
|
|
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
|
|
|
|
|
|
|
|
# - name: Install Rust
|
|
|
|
# run: |
|
|
|
|
# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
|
|
|
# - run: source "$HOME/.cargo/env"
|
|
|
|
|
|
|
|
- name: Install minimal nightly
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Publish
|
|
|
|
run: cargo run -r
|