1- [ ![ Workflow version
] ( https://img.shields.io/badge/Workflow%[email protected] .1 -blue )] ( https://docs.github.com/en/actions/learn-github-actions/reusing-workflows#calling-a-reusable-workflow ) 1+ [ ![ Workflow version
] ( https://img.shields.io/badge/Workflow%[email protected] .2 -blue )] ( https://docs.github.com/en/actions/learn-github-actions/reusing-workflows#calling-a-reusable-workflow ) 22[ ![ License: MIT or Apache] ( https://img.shields.io/badge/License-MIT%20or%20Apache%202.0-yellow.svg )] ( ./COPYRIGHT )
33
44# Shared Workflows
3030jobs :
3131 draft-new-release :
3232 name : " Draft a new release"
33- uses :
farcaster-project/workflows/.github/workflows/[email protected] .1 33+ uses :
farcaster-project/workflows/.github/workflows/[email protected] .2 3434 with :
3535 version : ${{ github.event.inputs.version }}
3636` ` `
5555 create_release:
5656 name: Create from merged release branch
5757 if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/')
58- uses: farcaster-project/workflows/.github/workflows/[email protected] .1 58+ uses: farcaster-project/workflows/.github/workflows/[email protected] .2 5959` ` `
6060
6161If you want to attached files to the release you can declare a `create_release` job with :
8181 create_release:
8282 name: Create from merged release branch
8383 if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/')
84- uses: farcaster-project/workflows/.github/workflows/[email protected] .1 84+ uses: farcaster-project/workflows/.github/workflows/[email protected] .2 8585 needs: produce_binaries
8686 with:
8787 artifact_name: release-folder
@@ -95,7 +95,7 @@ You can add another job after `create_release`, e.g. `releast_to_crates`, trigge
9595` ` ` yaml
9696 releast_to_crates:
9797 name: Release to crates.io
98- uses: farcaster-project/workflows/.github/workflows/[email protected] .1 98+ uses: farcaster-project/workflows/.github/workflows/[email protected] .2 9999 needs: create_release
100100 secrets:
101101 cratesio_token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
117117jobs:
118118 release:
119119 name: "Publish the new release to crates.io"
120- uses: farcaster-project/workflows/.github/workflows/[email protected] .1 120+ uses: farcaster-project/workflows/.github/workflows/[email protected] .2 121121 secrets:
122122 cratesio_token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
123123` ` `
0 commit comments