mirror of
https://github.com/anshuman-ecc-eth/hm-obsidian.git
synced 2026-07-22 06:06:22 +00:00
42 lines
849 B
YAML
42 lines
849 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '[0-9]+.[0-9]+.[0-9]+'
|
|
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
attestations: write
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
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 main.js
|
|
uses: actions/attest-build-provenance@v2
|
|
with:
|
|
subject-path: main.js
|
|
|
|
- name: Attest styles.css
|
|
uses: actions/attest-build-provenance@v2
|
|
with:
|
|
subject-path: styles.css
|
|
|
|
- name: Create Release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
files: |
|
|
main.js
|
|
manifest.json
|
|
styles.css
|
|
generate_release_notes: true
|