chore(deps): bump Swatinem/rust-cache from 2.4.0 to 2.6.2 #494
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create and publish release | |
on: | |
pull_request: | |
types: | |
- closed | |
jobs: | |
create_release: | |
name: Create from merged release branch | |
uses: farcaster-project/workflows/.github/workflows/[email protected] | |
release_to_crates: | |
name: Publish the new release to crates.io | |
uses: farcaster-project/workflows/.github/workflows/[email protected] | |
# Do not run before creating the release is done | |
needs: create_release | |
secrets: | |
cratesio_token: ${{ secrets.H4SH3D_CARGO_REGISTRY_TOKEN }} | |
faracsterd_image: | |
name: Farcasterd Docker image | |
runs-on: ubuntu-latest | |
# Do not run before creating the release is done | |
needs: create_release | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Extract version from branch name | |
id: extract-version | |
shell: python | |
run: | | |
branch_name = "${{ github.event.pull_request.head.ref }}" | |
version = branch_name.split("/")[1] | |
print(f"::set-output name=version::{version}") | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Docker build | |
run: docker build -f $GITHUB_WORKSPACE/Dockerfile -t ghcr.io/farcaster-project/farcaster-node/farcasterd:${{ steps.extract-version.outputs.version }} -t ghcr.io/farcaster-project/farcaster-node/farcasterd:latest $GITHUB_WORKSPACE | |
- name: Docker push to GitHub Packages (latest) | |
run: docker push ghcr.io/farcaster-project/farcaster-node/farcasterd:latest | |
- name: Docker push to GitHub Packages (release) | |
run: docker push ghcr.io/farcaster-project/farcaster-node/farcasterd:${{ steps.extract-version.outputs.version }} |