Skip to content

Commit 49c0a4a

Browse files
committed
test
1 parent 7c6b4ee commit 49c0a4a

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

.github/workflows/ffxiv_download.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,47 @@ name: FFXIV Data Downloader
33
on:
44
workflow_dispatch:
55

6+
push:
7+
tags:
8+
- "v*"
9+
610
jobs:
711
download_files:
812
runs-on: ubuntu-latest
9-
13+
1014
steps:
1115
- name: Checkout repository
1216
uses: actions/checkout@v4
1317

1418
- name: Download EXD Files
19+
id: download
1520
uses: WorkingRobot/ffxiv-downloader@v8
1621
with:
1722
output-path: exd-data
23+
1824
regex: '^sqpack\/ffxiv\/0a0000\..+$'
1925

26+
- name: Create GitHub Release if updated and triggered by tag
27+
28+
if: |
29+
startsWith(github.ref, 'refs/tags/') &&
30+
steps.download.outputs.updated == 'true'
31+
uses: softprops/action-gh-release@v2
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
with:
35+
tag_name: ${{ github.ref }}
36+
37+
name: FFXIV 原始文件备份 Version ${{ steps.download.outputs.version }}
38+
39+
files: exd-data/**
40+
41+
draft: false
42+
prerelease: false
43+
2044
- name: Upload Downloaded Artifact
2145
uses: actions/upload-artifact@v4
2246
with:
2347
name: ffxiv-exd-files
2448
path: exd-data
25-
retention-days: 7
49+
retention-days: 7

0 commit comments

Comments
 (0)