Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
drkpxl committed Nov 22, 2024
1 parent 065e80d commit d890875
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release Obsidian theme

on:
push:
tags:
- "*" # Trigger the workflow when a tag is pushed

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install GitHub CLI
run: sudo apt-get install gh

- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Extract the tag name from GITHUB_REF
tag="${GITHUB_REF#refs/tags/}"
# Create a release with the tag name and attach assets
gh release create "$tag" \
--title="$tag" \
--generate-notes \
--draft \
manifest.json theme.css

0 comments on commit d890875

Please sign in to comment.