mirror of
https://github.com/jacobtread/obsidian-timekeep.git
synced 2026-07-22 10:10:27 +00:00
feat: release attestation and remove old zip release
This commit is contained in:
parent
d82ab3a577
commit
85f7a5fc33
1 changed files with 14 additions and 5 deletions
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
|
|
@ -3,8 +3,13 @@ on:
|
|||
push:
|
||||
tags:
|
||||
- "*"
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
attestations: write
|
||||
artifact-metadata: write
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -25,16 +30,20 @@ jobs:
|
|||
- name: Build
|
||||
run: pnpm run build
|
||||
|
||||
- name: Generate artifact attestation
|
||||
uses: actions/attest@v4
|
||||
with:
|
||||
subject-path: |
|
||||
dist/main.js
|
||||
dist/manifest.json
|
||||
dist/styles.css
|
||||
|
||||
- name: Create release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
tag="${GITHUB_REF#refs/tags/}"
|
||||
fileName="obsidian-timekeep-$tag.zip"
|
||||
|
||||
zip $fileName dist/main.js dist/manifest.json dist/styles.css
|
||||
|
||||
gh release create "$tag" \
|
||||
--title="$tag" \
|
||||
--draft \
|
||||
$fileName dist/main.js dist/manifest.json dist/styles.css
|
||||
dist/main.js dist/manifest.json dist/styles.css
|
||||
|
|
|
|||
Loading…
Reference in a new issue