Skip to content

Commit 9a5bdb0

Browse files
Merge remote-tracking branch 'origin/main' into beta
2 parents 2fa71d4 + 98316ae commit 9a5bdb0

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed

Diff for: .github/workflows/release-beta.yml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Build Obsidian Plugin Beta
2+
3+
on: workflow_dispatch
4+
5+
env:
6+
PLUGIN_NAME: obsidian-soundscapes
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
ref: "beta"
14+
- name: Use Node.js
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: "20.x"
18+
- name: Get Package Version
19+
id: get_package_version
20+
run: echo "PACKAGE_VERSION=$(cat package.json | jq -r '.version')" >> $GITHUB_ENV
21+
- name: Build
22+
id: build
23+
run: |
24+
echo Building for version PACKAGE_VERSION
25+
npm ci
26+
npm run build
27+
zip -jr ${{ env.PLUGIN_NAME }}-${{ env.PACKAGE_VERSION }}.zip dist/*
28+
ls
29+
- name: Release
30+
uses: softprops/action-gh-release@v1
31+
with:
32+
tag_name: ${{ env.PACKAGE_VERSION }}
33+
files: |
34+
${{ env.PLUGIN_NAME }}-${{ env.PACKAGE_VERSION }}.zip
35+
dist/main.js
36+
dist/manifest.json
37+
dist/styles.css
38+
- name: Create beta manifest
39+
id: createbetamanifest
40+
run: |
41+
cp -f manifest.json manifest-beta.json
42+
- name: Upload manifest-beta.json
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: manifest-beta
46+
path: manifest-beta.json
47+
update_mainifest_beta_main:
48+
runs-on: ubuntu-latest
49+
needs: build
50+
steps:
51+
- uses: actions/checkout@v4
52+
with:
53+
ref: "main"
54+
- name: Download manifest-beta
55+
uses: actions/download-artifact@v4
56+
with:
57+
name: manifest-beta
58+
- name: Commit
59+
id: commit
60+
run: |
61+
git config --local user.name 'Github Actions'
62+
git config --local user.email 'noreply@github.com'
63+
git add .
64+
git commit -m "Update manifest-beta.json"
65+
git push

Diff for: manifest-beta.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"id": "soundscapes",
3+
"name": "Soundscapes",
4+
"version": "1.2.0-beta.4",
5+
"minAppVersion": "0.15.0",
6+
"description": "Adds a music/ambiance (E.g. lofi, white noise) player to the status bar to help with concentration. Also allows you to play your own local music files.",
7+
"author": "Andrew McGivery",
8+
"authorUrl": "https://github.com/andrewmcgivery",
9+
"fundingUrl": "https://www.buymeacoffee.com/andrewmcgivery",
10+
"isDesktopOnly": true
11+
}

0 commit comments

Comments
 (0)