Merge pull request #337 from Luni-4/github-actions
Add cargo-publish job
This commit is contained in:
commit
dca5a11476
2 changed files with 16 additions and 28 deletions
16
.github/workflows/cpal.yml
vendored
16
.github/workflows/cpal.yml
vendored
|
|
@ -19,6 +19,22 @@ jobs:
|
|||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: --all --all-features
|
||||
|
||||
cargo-publish:
|
||||
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Run cargo publish
|
||||
env:
|
||||
MANIFEST: alsa-sys/Cargo.toml
|
||||
CRATESIO_TOKEN: ${{ secrets.CRATESIO_TOKEN }}
|
||||
run: |
|
||||
cargo publish --token $CRATESIO_TOKEN --manifest-path $MANIFEST
|
||||
cargo publish --token $CRATESIO_TOKEN
|
||||
|
||||
ubuntu-test:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue