generated from obsidianmd/obsidian-sample-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |