Skip to content

Commit a1e3f9f

Browse files
authored
Create release.yml for automatic packaging actions.
1 parent aae71aa commit a1e3f9f

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# description of this workflow, can be anything you want
2+
name: Package and release
3+
4+
# we need to let GitHub know _when_ we want to release, typically only when we create a new tag.
5+
# this will target only tags, and not all pushes to the master branch.
6+
# this part can be heavily customized to your liking, like targeting only tags that match a certain word,
7+
# other branches or even pullrequests.
8+
on:
9+
push:
10+
tags:
11+
- '**'
12+
13+
# a workflow is built up as jobs, and within these jobs are steps
14+
jobs:
15+
16+
# "release" is a job, you can name it anything you want
17+
release:
18+
19+
# we can run our steps on pretty much anything, but the "ubuntu-latest" image is a safe bet
20+
runs-on: ubuntu-latest
21+
22+
# specify the environment variables used by the packager, matching the secrets from the project on GitHub
23+
env:
24+
CF_API_KEY: ${{ secrets.CF_API_KEY }}
25+
WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }}
26+
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}
27+
GITHUB_OAUTH: ${{ secrets.GH_TOKEN }}
28+
29+
# "steps" holds a list of all the steps needed to package and release our AddOn
30+
steps:
31+
32+
# we first have to clone the AddOn project, this is a required step
33+
- name: Clone project
34+
uses: actions/checkout@v3
35+
with:
36+
fetch-depth: 0 # gets git history for changelogs
37+
38+
# once cloned, we just run the GitHub Action for the packager project
39+
- name: Package and release
40+
uses: BigWigsMods/packager@v2

0 commit comments

Comments
 (0)