Skip to content

Commit 39a9da9

Browse files
authored
Create main.yml
1 parent d23ab01 commit 39a9da9

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/workflows/main.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Build LinkDown
2+
3+
on:
4+
workflow_dispatch:
5+
6+
7+
jobs:
8+
Build:
9+
runs-on: windows-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@main
14+
15+
- name: Download yt-dlp
16+
run: |
17+
cd LinkDown
18+
del yt-dlp.exe
19+
curl -L --max-redirs -1 --output https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe
20+
21+
- name: Compile Setup Wizard
22+
uses: Minionguyjpro/[email protected]
23+
with:
24+
path: LinkDown_Wizard.iss
25+
options: /O+
26+
27+
- name: Upload Setup Wizard
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: setup
31+
path: Output\linkdown_setup.exe
32+
33+
34+
Upload:
35+
needs: Build
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Checkout
39+
uses: actions/checkout@main
40+
41+
- name: Download Release Folder
42+
uses: actions/download-artifact@v4
43+
with:
44+
name: setup
45+
path: Output
46+
47+
- name: Setup Git Environment
48+
run: |
49+
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
50+
git config --global user.name github-actions[bot]
51+
52+
- name: Generate Release Tag
53+
id: tag
54+
run: |
55+
echo "::set-output name=release_version::1.0.1"
56+
57+
- name: Upload to Releases
58+
uses: softprops/action-gh-release@v2
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
with:
62+
name: LinkDown ${{ steps.tag.outputs.release_version }}
63+
tag_name: ${{ steps.tag.outputs.release_version }}
64+
files: Output/linkdown_setup.exe

0 commit comments

Comments
 (0)