forked from repplus/rep-firefox
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 859 Bytes
/
Copy pathbuild-release.yml
File metadata and controls
35 lines (29 loc) · 859 Bytes
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
name: Build and Release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Build XPI
run: |
# Create the .xpi file by zipping contents associated with the extension
# Exclude git directories, DS_Store, node_modules, and the xpi itself if it exists
zip -r rep-plus.xpi * -x "*.git*" -x "*.DS_Store" -x "node_modules/*" -x "*.xpi" -x ".github/*"
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: rep-plus.xpi
draft: false
prerelease: false
generate_release_notes: true