mirror of
https://github.com/flatulentfowl/docdrop.git
synced 2026-07-22 06:49:52 +00:00
Merge pull request #3 from FlatulentFowl/claude/add-artifact-attestation-J0y27
Add release workflow and fix documentation typos
This commit is contained in:
commit
a109e223bd
4 changed files with 89 additions and 7 deletions
82
.github/workflows/release.yml
vendored
Normal file
82
.github/workflows/release.yml
vendored
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
outputs:
|
||||
main-js-path: ${{ steps.build.outputs.main-js-path }}
|
||||
styles-css-path: ${{ steps.build.outputs.styles-css-path }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
|
||||
- id: build
|
||||
run: |
|
||||
echo "main-js-path=main.js" >> $GITHUB_OUTPUT
|
||||
echo "styles-css-path=styles.css" >> $GITHUB_OUTPUT
|
||||
|
||||
attest:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
|
||||
- name: Attest build provenance for main.js
|
||||
uses: actions/attest-build-provenance@v1
|
||||
with:
|
||||
subject-path: main.js
|
||||
|
||||
- name: Attest build provenance for styles.css
|
||||
uses: actions/attest-build-provenance@v1
|
||||
with:
|
||||
subject-path: styles.css
|
||||
|
||||
release:
|
||||
needs: [build, attest]
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: |
|
||||
main.js
|
||||
styles.css
|
||||
manifest.json
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
"name": "DocDrop",
|
||||
"version": "1.0.0",
|
||||
"minAppVersion": "1.0.0",
|
||||
"description": "Obsidian plugin: Convert PDF files to Markdown using Microsofts markitdown CLI.",
|
||||
"description": "Convert PDF files to Markdown using Microsoft's markitdown CLI.",
|
||||
"author": "Rhys Gottwald",
|
||||
"authorUrl": "",
|
||||
"isDesktopOnly": true
|
||||
|
|
|
|||
8
package-lock.json
generated
8
package-lock.json
generated
|
|
@ -12,7 +12,7 @@
|
|||
"obsidian": "latest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.0.0",
|
||||
"@types/node": "^22.19.19",
|
||||
"@typescript-eslint/parser": "^8.59.1",
|
||||
"esbuild": "^0.25.5",
|
||||
"eslint": "^9.39.4",
|
||||
|
|
@ -889,9 +889,9 @@
|
|||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "22.19.17",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.17.tgz",
|
||||
"integrity": "sha512-wGdMcf+vPYM6jikpS/qhg6WiqSV/OhG+jeeHT/KlVqxYfD40iYJf9/AE1uQxVWFvU7MipKRkRv8NSHiCGgPr8Q==",
|
||||
"version": "22.19.19",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.19.tgz",
|
||||
"integrity": "sha512-dyh/xO2Fh5bYrfWaaqGrRQQGkNdmYw6AmaAUvYeUMNTWQtvb796ikLdmTchRmOlOiIJ1TDXfWgVx1QkUlQ6Hew==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "docdrop",
|
||||
"version": "1.0.0",
|
||||
"description": "Obsidian plugin: Convert PDF files to Markdown using Microsofts markitdown CLI.",
|
||||
"description": "Convert PDF files to Markdown using Microsoft's markitdown CLI.",
|
||||
"main": "main.js",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
"obsidian": "latest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.0.0",
|
||||
"@types/node": "^22.19.19",
|
||||
"@typescript-eslint/parser": "^8.59.1",
|
||||
"esbuild": "^0.25.5",
|
||||
"eslint": "^9.39.4",
|
||||
|
|
|
|||
Loading…
Reference in a new issue