diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..65e64ee --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,54 @@ +name: Release Virtual Content + +on: + push: + tags: + - "*" + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + id-token: write # Required for generating the OIDC token + attestations: write # Required for writing the attestation + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: lts/* + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build plugin + run: npm run build --if-present + + # --- New Attestation Step --- + - name: Attest Build Provenance + uses: actions/attest-build-provenance@v1 + with: + subject-path: | + main.js + manifest.json + styles.css + + - name: Create GitHub Release + id: create_release + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + draft: false + prerelease: false + files: | + main.js + manifest.json + styles.css + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/manifest.json b/manifest.json index b28d537..8c5c2f0 100644 --- a/manifest.json +++ b/manifest.json @@ -1,9 +1,9 @@ { "id": "virtual-footer", "name": "Virtual Content", - "version": "1.0.29", + "version": "1.0.30", "minAppVersion": "0.15.0", - "description": "Display markdown text (including dataview queries or Obsidian bases) at the bottom, top or in the sidebar for all notes which match a specified rule, without modifying them.", + "description": "Display markdown text (including dataview queries or Bases) at the bottom, top or in the sidebar for all notes which match a specified rule, without modifying them.", "author": "Signynt", "authorUrl": "https://github.com/Signynt", "fundingUrl": "", diff --git a/package.json b/package.json index 2d430ec..3b85898 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "virtual-footer", - "version": "1.0.0", - "description": "Display markdown text (including dataview queries) at the bottom of all notes in a folder, without modifying them.", + "version": "1.0.30", + "description": "Display markdown text (including dataview queries or Bases) at the bottom, top or in the sidebar for all notes which match a specified rule, without modifying them.", "main": "main.js", "scripts": { "dev": "node esbuild.config.mjs",