Release #593
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 }} |