-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (30 loc) · 904 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-24.04
container: ubuntu:24.04
steps:
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false
- name: Version
id: version
run: echo "version=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
- name: Build
run: scripts/ci-build.sh
- name: Rename
run: mv prev-colors.xpi prev-colors-${{ steps.version.outputs.version }}.xpi
- name: Notes
run: grep -Pzom1 "(?s)\n[##\s]*${{ steps.version.outputs.version }}.*?\n+.*?\K.*?(\n\n|$)" CHANGELOG.md | sed 's/[^[:print:]]//g' > RELEASE.md
- name: Release
uses: softprops/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: prev-colors-${{ steps.version.outputs.version }}.xpi
body_path: RELEASE.md