Skip to content

Commit

Permalink
Release action (#185)
Browse files Browse the repository at this point in the history
* added release action

* removed pr as cant add tags to pr

* reverted edition

* updated to push tag

* updated tag

* added code checkout

* added the appropriate actions checkout

* added manual dispatch

* added release_type

* removed steps

* added to commit updates after version bump

* updated ordering of fields

* updated workflows

* removed lock as ignored by gitignore

* added branch main

* new workflow
  • Loading branch information
thesuhas authored Sep 26, 2024
1 parent 4081530 commit 71ed356
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish

on:
pull_request:
types:
- closed
branches:
- main

env:
CARGO_TERM_COLOR: always

jobs:
publish:
runs-on: ubuntu-latest
if: github.event.pull_request.merge == true && github.event.pull_request.head == 'automated_release' && github.event.pull_request.base == 'main'
steps:
- name: Publish Update
run: cargo publish
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
permissions:
# Gives write permisison to commit toml changes
contents: write
pull-requests: write

steps:
- name: cargo login
Expand All @@ -61,7 +62,5 @@ jobs:
with:
commit_message: Version Bump
file_pattern: 'Cargo.toml'
branch: main

- name: cargo publish
run: cargo publish
branch: automated-release
create_branch: 'true'

0 comments on commit 71ed356

Please sign in to comment.