Skip to content

Commit

Permalink
chore: change action trigger condition from tag to release (#61)
Browse files Browse the repository at this point in the history
* chore: make action happened on release & change css

* chore: remove tags condition of release.yml
  • Loading branch information
karlsbeard authored Apr 22, 2024
1 parent 74aa252 commit 7fbf3cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Release Obsidian plugin

on:
push:
tags:
- '*'
release:
types: [published]

env:
PLUGIN_NAME: obsidian-univer
Expand Down Expand Up @@ -36,20 +35,13 @@ jobs:
pnpm i
pnpm build
mkdir ${{ env.PLUGIN_NAME }}
echo "Waiting for build files..."
while [ ! -f dist/main.js ] || [ ! -f dist/manifest.json ] || [ ! -f dist/styles.css ]; do
echo "Still waiting for build files..."
sleep 1
done
echo "All build files are ready."
- name: Get latest release upload URL
id: get_latest_release
run: |
upload_url=$(gh release view --json uploadUrl -q .uploadUrl)
echo "::set-output name=upload_url::$upload_url"
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
echo "upload_url=$upload_url" >> $GITHUB_OUTPUT
- name: Upload main.js
id: upload-main
Expand Down
7 changes: 7 additions & 0 deletions src/style/univer.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,18 @@

button.univer-button-text,
button.univer-toolbar-btn,
button.univer-dialog-close,
button.univer-sheet-bar-btn {
background-color: transparent;
box-shadow: none;
}

.univer-input {
box-shadow: none !important;
color: rgb(var(--text-color)) !important;
}


button.univer-toolbar-btn-active {
background-color: rgb(var(--grey-100));
}
Expand Down

0 comments on commit 7fbf3cc

Please sign in to comment.