2023-05-24 02:53:53 +08:00
|
|
|
name: Build & Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "*"
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
runs-on: ubuntu-latest
|
2024-08-07 02:11:38 +08:00
|
|
|
permissions:
|
2024-08-18 23:22:51 +08:00
|
|
|
contents: write
|
2024-08-07 02:11:38 +08:00
|
|
|
id-token: write # The OIDC ID token is used for authentication with JSR.
|
2023-05-24 02:53:53 +08:00
|
|
|
steps:
|
|
|
|
- name: Setup repo
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Deno
|
|
|
|
uses: denoland/setup-deno@v1
|
|
|
|
with:
|
2024-08-24 18:35:09 +08:00
|
|
|
deno-version: v1.46
|
2023-05-24 02:53:53 +08:00
|
|
|
- name: Run build
|
|
|
|
run: deno task build
|
|
|
|
- name: Bundle
|
|
|
|
run: deno task bundle
|
2024-08-07 02:11:38 +08:00
|
|
|
- name: Publish to JSR
|
|
|
|
run: deno publish
|
2023-05-24 02:53:53 +08:00
|
|
|
- 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
|
2023-05-24 02:53:53 +08:00
|
|
|
files: |
|
|
|
|
website/CHANGELOG.md
|
|
|
|
dist/silverbullet.js
|