Update to version 1.6.7 #68
Workflow file for this run
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
name: Build obsidian plugin | |
on: | |
push: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- '*' # Push events to matching any tag format, i.e. 1.0, 20.15.10 | |
env: | |
PLUGIN_NAME: obsidian-ics | |
jobs: | |
build: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' # You might need to adjust this value to your own version | |
- name: Build | |
id: build | |
run: | | |
npm install | |
npm run build --if-present | |
npm run dev-build --if-present | |
mkdir ${{ env.PLUGIN_NAME }} | |
cp manifest.json dist/ | |
cp styles.css dist/ | |
cp dist/main.js dist/manifest.json ${{ env.PLUGIN_NAME }} | |
zip -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }} | |
ls dist/ | |
- name: Create release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
tag="${GITHUB_REF#refs/tags/}" | |
gh release create "$tag" \ | |
--title="$tag" \ | |
--draft \ | |
dist/main.js dist/styles.css dist/manifest.json dist/main-debug.js ${{ env.PLUGIN_NAME }}.zip |