Skip to content

Commit

Permalink
make crates publish-able for other branches than master (#10322)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekleog-NEAR authored Dec 12, 2023
1 parent c814b9d commit 4f811e7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/near_crates_publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Near crates publish
name: Near Crates Publish

on:
push:
branches: master
paths:
- 'Cargo.toml'
workflow_dispatch:
inputs:
branch:
type: string
required: true
description: Branch name or tag to build from

jobs:
publish-cargo-crates:
Expand All @@ -17,10 +18,11 @@ jobs:
timeout-minutes: 30

steps:
- name: Checkout near/nearcore branch
- name: Checkout near/nearcore's ${{ github.event.inputs.branch }} branch
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}
- name: Set up git user
uses: fregante/setup-git-user@v2
- name: Publish near-workspaces on crates.io
Expand Down

0 comments on commit 4f811e7

Please sign in to comment.