Replace Woodpecker CI with GitHub/Forgejo Actions workflows matching the patterns used in mattermost-marketplace-ng. Add CI workflow with lint and build jobs, and release workflow with artifact upload. Also update .gitignore with web-ext-artifacts and AI tool entries. Reviewed-on: #1 Co-authored-by: Felipe M. <me@fmartingr.com> Co-committed-by: Felipe M. <me@fmartingr.com>
36 lines
985 B
YAML
36 lines
985 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags: ["v*"]
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: docker
|
|
container: git.nakama.town/fmartingr/ci-images/ci-base:1.0.0
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- uses: actions/setup-bun@v2
|
|
|
|
- name: Build extension
|
|
run: make build
|
|
|
|
- name: Prepare artifacts
|
|
run: |
|
|
TAG=${GITHUB_REF#refs/tags/}
|
|
mkdir -p release
|
|
find web-ext-artifacts -name "*.zip" -exec mv {} release/webext-dark-mode-${TAG}.zip \;
|
|
cp release/webext-dark-mode-${TAG}.zip release/webext-dark-mode-${TAG}.xpi
|
|
|
|
- name: Create release
|
|
uses: actions/forgejo-release@v2.6.0
|
|
with:
|
|
direction: upload
|
|
tag: ${{ github.ref_name }}
|
|
title: ${{ github.ref_name }}
|
|
release-notes: ""
|
|
download-url: ${{ server_url }}/${{ github.repository }}
|
|
token: ${{ secrets.FORGEJO_TOKEN }}
|
|
release-dir: release
|
|
release-notes-assistant: ""
|