Skip to content

chore: version bump

chore: version bump #1

Workflow file for this run

# This triggers whenever a tagged release is pushed
name: Compile Assets and Create Draft Release
on:
push:
tags:
# Trigger on tags beginning with 'v'
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # Needed to create releases
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Need to fetch the tags
- uses: dart-lang/setup-dart@v1
- name: Install dependencies
run: dart pub get
- name: Compile WebWorker
run: dart compile js -o assets/db_worker.js -O0 lib/src/web/worker/worker.dart
- name: Set tag name
id: tag
run: |
tag=$(basename "${{ github.ref }}")
echo "tag=$tag" >> $GITHUB_OUTPUT
- name: Create Release
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: |
tag="${{ steps.tag.outputs.tag }}"
body="Release $tag"
gh release create --draft "$tag" --title "$tag" --notes "$body"
- name: Upload Worker
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: |
gh release upload "${{ steps.tag.outputs.tag }}" assets/db_worker.js