35 lines
807 B
YAML
35 lines
807 B
YAML
name: Build & Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
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
|
|
uses: denoland/setup-deno@v2
|
|
with:
|
|
deno-version: v2.0
|
|
- 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:
|
|
draft: false
|
|
files: |
|
|
website/CHANGELOG.md
|
|
dist/silverbullet.js
|