Skip to content

Commit

Permalink
Merge pull request #18 from Juanperias/juanperias-release-workflow
Browse files Browse the repository at this point in the history
Trigger workflow only on release creation
  • Loading branch information
Juanperias authored Oct 27, 2024
2 parents 4bdc4bf + 7583a37 commit c910c68
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,20 @@
name: Release Crate

on:
push:
paths-ignore:
- ".github/"
- "release.toml"
- "LICENSE"
- "README.md"
- "CONTRIBUTING.md"
- ".gitignore"
branches:
- main
release:
types: [created]

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Publish to crates.io
uses: katyo/publish-crates@v2
with:
Expand Down

0 comments on commit c910c68

Please sign in to comment.