Skip to content

Merge branch 'main' of https://github.com/SkyfallWasTaken/figma-wakatime #23

Merge branch 'main' of https://github.com/SkyfallWasTaken/figma-wakatime

Merge branch 'main' of https://github.com/SkyfallWasTaken/figma-wakatime #23

Workflow file for this run

name: Build
on:
push:
branches: [main]
tags:
- 'v*'
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Build extensions
run: |
bun run zip
bun run zip:firefox
- name: Upload Chrome artifact
uses: actions/upload-artifact@v4
with:
name: chrome-extension
path: .output/chrome-mv3
if-no-files-found: error
- name: Upload Firefox artifact
uses: actions/upload-artifact@v4
with:
name: firefox-extension
path: .output/firefox-mv2
if-no-files-found: error
- name: Create Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
files: |
.output/figma-wakatime-chrome.zip
.output/figma-wakatime-firefox.zip
draft: false
prerelease: false
generate_release_notes: true
- name: Upload to AMO
if: startsWith(github.ref, 'refs/tags/v')
uses: trmcnvn/firefox-addon@v1
with:
uuid: ${{ secrets.FIREFOX_UUID }}
xpi: .output/figma-wakatime-firefox.zip
manifest: manifest.json
api-key: ${{ secrets.FIREFOX_API_KEY }}
api-secret: ${{ secrets.FIREFOX_API_SECRET }}