Skip to content

Commit

Permalink
chore: add release system
Browse files Browse the repository at this point in the history
  • Loading branch information
Nydragon committed May 23, 2024
1 parent a72b4be commit 0045c12
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
push:
tags:
- "*.*.*"

permissions:
contents: write

jobs:
tests:
uses: ./.github/workflows/ci.yaml
deploy:
needs: [tests]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: cargo build --release --verbose
- name: Release
uses: softprops/action-gh-release@v2
with:
files: ./target/release/rofi-obsidian
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: CI

on: pull_request
on:
- pull_request
- workflow_call

jobs:
build:
Expand Down

0 comments on commit 0045c12

Please sign in to comment.