-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.11 KB
/
release.yml
File metadata and controls
46 lines (38 loc) · 1.11 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
name: Release
on:
workflow_dispatch:
inputs:
version:
description: 'Version number (X.Y.Z)'
required: true
default: ''
permissions:
contents: write
jobs:
build:
runs-on: macos-latest # Use macOS runner for Alfred compatibility
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build workflow
run: |
chmod +x build.sh
./build.sh --version ${{ github.event.inputs.version }}
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: alfred-leetcode.alfredworkflow
name: Release ${{ github.event.inputs.version }}
tag_name: v${{ github.event.inputs.version }}
draft: false
prerelease: false
generate_release_notes: true