-
-
Notifications
You must be signed in to change notification settings - Fork 26
41 lines (35 loc) · 1.35 KB
/
deploy_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
# this is derived from https://github.com/BigWigsMods/packager/wiki/GitHub-Actions-workflow
# the only real modifications I've made are to handle only specific tag formats
name: Package and build release versions
# when a tag is created with the format vx.y.z or x.y.z
on:
push:
tags:
- "*.*.*"
- "v*.*.*"
- "!v*.*.*-*"
- "!*.*.*-*"
# a workflow is built up as jobs, and within these jobs are steps
jobs:
# "release" here can be anything in one word
release:
# we can run our steps on pretty much anything, but the "ubuntu-latest" image is a safe bet
runs-on: ubuntu-latest
# specify the environment variables used by the packager, matching the secrets from the project on GitHub
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}
WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }}
# "steps" holds a list of all the steps needed to package and release our AddOn
steps:
# we first have to clone the AddOn project, which is simple enough, and is a required step
- name: Clone project
uses: actions/checkout@v4
with:
fetch-depth: 0
# retail
- name: Package and release
uses: BigWigsMods/packager@v2
with:
args: -S -p 6650 -w 9085 -a 9rN4rdKD