publish-pyth-price-store.yml 674 B

123456789101112131415161718192021222324
  1. name: Publish Pyth Price Store to crates.io
  2. on:
  3. push:
  4. tags:
  5. - pyth-price-store-v*
  6. jobs:
  7. publish-pyth-price-store:
  8. name: Publish Pyth Price Store
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Checkout sources
  12. uses: actions/checkout@v2
  13. - name: Install Rust
  14. uses: actions-rs/toolchain@v1
  15. with:
  16. toolchain: stable
  17. default: true
  18. components: rustfmt, clippy
  19. - name: Publish
  20. run: cargo publish --token ${CARGO_REGISTRY_TOKEN}
  21. env:
  22. CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
  23. working-directory: "target_chains/solana/programs/pyth-price-store"