silverbullet/.github/workflows/release.yml

35 lines
807 B
YAML
Raw Normal View History

name: Build & Release
on:
push:
tags:
- "*"
jobs:
release:
runs-on: ubuntu-latest
permissions:
2024-08-18 23:22:51 +08:00
contents: write
id-token: write # The OIDC ID token is used for authentication with JSR.
steps:
- name: Setup repo
uses: actions/checkout@v3
- name: Setup Deno
2024-10-10 18:52:28 +08:00
uses: denoland/setup-deno@v2
with:
2025-01-08 16:38:06 +08:00
deno-version: v2.1
- name: Run build
run: deno task build
- name: Bundle
run: deno task bundle
- name: Publish to JSR
run: deno publish
- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
2023-10-29 17:00:46 +08:00
draft: false
files: |
website/CHANGELOG.md
2024-10-10 18:52:28 +08:00
dist/silverbullet.js