-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (50 loc) · 1.81 KB
/
release.yml
File metadata and controls
62 lines (50 loc) · 1.81 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Release Extension
on:
push:
branches:
- main
jobs:
release:
if: contains(github.event.head_commit.message, '[RELEASE]')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build extension
run: npm run build
- name: Zip extension
run: |
cd dist
zip -r ../web2skill-extension.zip .
- name: Get current date
id: date
run: echo "date=$(date +'%Y.%m.%d-%H%M')" >> $GITHUB_OUTPUT
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ steps.date.outputs.date }}
name: Web2Skill Release ${{ steps.date.outputs.date }}
files: web2skill-extension.zip
body: |
## Web2Skill - Chrome Extension Release
This release was automatically generated via GitHub Actions.
### Installation Instructions
1. Download the `web2skill-extension.zip` file from this release.
2. Extract the ZIP file to a folder on your computer.
3. Open Google Chrome and navigate to `chrome://extensions/`.
4. Enable **Developer mode** using the toggle in the top right corner.
5. Click the **Load unpacked** button.
6. Select the folder where you extracted the extension files.
7. The Web2Skill extension is now ready to use!
---
*Created with web2skill, from [Inled Group](https://inled.es)*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}