fork of https://github.com/tree-sitter/tree-sitter-graph
at main 1.0 kB view raw
1name: Publish release 2on: 3 push: 4 tags: 5 - v* 6 7jobs: 8 publish-crate: 9 runs-on: ubuntu-latest 10 env: 11 CARGO_TERM_COLOR: always 12 CARGO_INCREMENTAL: 0 13 steps: 14 - name: Install Rust environment 15 uses: hecrj/setup-rust-action@v1 16 - name: Checkout repository 17 uses: actions/checkout@v2 18 # TODO Verify the crate version matches the tag 19 - name: Verify publish crate 20 uses: katyo/publish-crates@v1 21 with: 22 dry-run: true 23 - name: Publish crate 24 uses: katyo/publish-crates@v1 25 with: 26 registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} 27 create-release: 28 runs-on: ubuntu-latest 29 permissions: 30 contents: write 31 steps: 32 - name: Checkout repository 33 uses: actions/checkout@v2 34 - name: Create GitHub release 35 uses: ncipollo/release-action@v1 36 with: 37 body: | 38 Find more info on all releases at https://crates.io/crates/tree-sitter-graph. 39 token: ${{ secrets.GITHUB_TOKEN }}