Sync your Obsidian vault to an atproto PDS
community.obsidian.md/plugins/pds-sync
1.1 kB
40 lines
1name: Release
2
3on:
4 push:
5 tags:
6 - "*"
7
8jobs:
9 release:
10 runs-on: ubuntu-latest
11 permissions:
12 contents: write # create the release
13 id-token: write # OIDC token for provenance signing
14 attestations: write # write the build attestation
15 steps:
16 - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
17
18 - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
19 with:
20 bun-version: 1.3.14
21
22 - name: Install and build
23 run: |
24 bun install --frozen-lockfile
25 bun run build
26
27 - name: Attest build provenance
28 uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.2.0
29 with:
30 subject-path: main.js
31
32 - name: Create draft release
33 env:
34 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35 run: |
36 tag="${GITHUB_REF#refs/tags/}"
37 gh release create "$tag" \
38 --title="$tag" \
39 --draft \
40 main.js manifest.json