Skip to content

Commit

Permalink
Add custom workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
p4ken committed May 26, 2024
1 parent 2942054 commit b1be0df
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,33 @@ on:
push:
schedule:
- cron: '0 3 * * *'
workflow_dispatch:
inputs:
bump:
required: false
# default: ''
type: choice
options:
- patch
- minor

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: make

publish:
if: "${{ github.event.inputs.bump != '' }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: echo $CARGO_REGISTRY_TOKEN

0 comments on commit b1be0df

Please sign in to comment.