Skip to content

Commit

Permalink
ci: create publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusJx authored Sep 15, 2023
1 parent 73fce8d commit 5c520e3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish

on:
workflow_dispatch:
inputs:
dry-run:
description: 'Dry run'
type: boolean
required: false
default: 'false'

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build
- name: Run tests
run: cargo test
- name: publish crates
uses: katyo/publish-crates@v2
with:
dry-run: ${{ github.event.inputs.dry-run == 'true' }}
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
path: ./crates/app-state

0 comments on commit 5c520e3

Please sign in to comment.