-
Notifications
You must be signed in to change notification settings - Fork 97
68 lines (55 loc) · 1.73 KB
/
release.yml
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
63
64
65
66
67
68
# This is a workflow to package and upload on CurseForge and GitHub Releases using BigWigs/Packager
name: Release
# Controls when the action will run.
on:
# Package alpha version at 06:00 UTC everyday
schedule:
- cron: '0 6 * * *'
# Triggers the workflow on tag events
push:
tags: '*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Database Parser for Retail
timeout-minutes: 5
run: |
cd .contrib/Parser
"Parser for Retail".bat
shell: cmd
- name: Database Parser for Classic
timeout-minutes: 5
run: |
cd .contrib/Parser
"Parser for Classic".bat
shell: cmd
- uses: actions/upload-artifact@v4
with:
name: db-output # Artifact name
path: db/ # File path to upload
retention-days: 7
release-linux:
runs-on: ubuntu-latest
needs: build-windows
steps:
- uses: actions/checkout@v4
- name: Fetch 200 latest commits and tags
run: |
git fetch origin --deepen=200
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: db-output # Name of the artifact to download
path: db
# once cloned, we just run the GitHub Action for the packager project
- name: Package and release
uses: BigWigsMods/packager@master
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
#WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }}
WAGO_API_TOKEN: ${{ secrets.WAGO_API_KEY }}