Skip to content

buikd: release 调整 #6

buikd: release 调整

buikd: release 调整 #6

Workflow file for this run

name: Release Obsidian plugin
on:
push:
tags:
- '*'
env:
PLUGIN_NAME: history-today # Change this to match the id of your plugin.
jobs:
build:
permissions:

Check failure on line 13 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 13
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '22.x'
- name: Build
id: build
run: |
npm install
npm run build
mkdir ${{ env.PLUGIN_NAME }}
cp main.js manifest.json styles.css ${{ 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
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
draft: false
prerelease: false
files: |
${{ env.PLUGIN_NAME }}.zip
main.js
manifest.json
styles.css