Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
renatocaliari authored May 2, 2022
1 parent f679ff0 commit 0ecad23
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "*" # Push events to matching any tag format, i.e. 1.0, 20.15.10
- '*' # Push events to matching any tag format, i.e. 1.0, 20.15.10

env:
PLUGIN_NAME: logseq-plugin-quick-references
Expand All @@ -18,20 +18,19 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "14.x" # You might need to adjust this value to your own version
node-version: '16.x' # You might need to adjust this value to your own version
- name: Build
id: build
run: |
npm install -g yarn
yarn
yarn install
yarn build
mkdir ${{ env.PLUGIN_NAME }}
cp LICENSE README.md package.json icon.png ${{ env.PLUGIN_NAME }}
cp README.md package.json ./img/icon.png ${{ env.PLUGIN_NAME }}
mv dist ${{ env.PLUGIN_NAME }}
zip -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }}
ls
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
- name: Create Release
uses: ncipollo/release-action@v1
id: create_release
Expand Down

0 comments on commit 0ecad23

Please sign in to comment.