mirror of
https://github.com/4513echo/obsidian-embed-plus.git
synced 2026-07-22 06:55:40 +00:00
38 lines
900 B
YAML
38 lines
900 B
YAML
name: Release
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
attestations: write
|
|
artifact-metadata: write
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: voidzero-dev/setup-vp@v1
|
|
with:
|
|
cache: true
|
|
- run: vp run build
|
|
- name: Validate version
|
|
id: validate
|
|
run: |
|
|
vp exec node ./tool/validate_ci.ts
|
|
- uses: softprops/action-gh-release@v2
|
|
with:
|
|
draft: true
|
|
prerelease: ${{ steps.validate.outputs.prerelease == 'true' }}
|
|
working_directory: dist
|
|
files: |
|
|
main.js
|
|
manifest.json
|
|
styles.css
|
|
- uses: actions/attest@v4
|
|
with:
|
|
subject-path: |
|
|
dist/main.js
|
|
dist/manifest.json
|
|
dist/styles.css
|