Skip to content

Commit 8c970ad

Browse files
authored
Update main.yml
1 parent 34213d8 commit 8c970ad

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
branches:
1010
- master
1111
tags:
12-
- '*'
12+
- '**'
1313

1414

1515
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
@@ -19,14 +19,20 @@ jobs:
1919
# The type of runner that the job will run on
2020
runs-on: ubuntu-latest
2121

22-
# Steps represent a sequence of tasks that will be executed as part of the job
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+
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} # "GITHUB_TOKEN" is a secret always provided to the workflow
26+
# for your own token, the name cannot start with "GITHUB_"
27+
28+
# "steps" holds a list of all the steps needed to package and release our AddOn
2329
steps:
24-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
25-
- uses: actions/checkout@v2
26-
27-
# Runs a single command using the runners shell
28-
- name: Create Retail Package
29-
run: curl -s https://raw.githubusercontent.com/BigWigsMods/packager/master/release.sh | bash -s -- -m .pkgmeta
30-
env:
31-
GITHUB_OAUTH: ${{ secrets.GH_OAUTH }}
32-
CF_API_KEY: ${{ secrets.CF_API_KEY }}
30+
31+
# we first have to clone the AddOn project, this is a required step
32+
- name: Clone project
33+
uses: actions/checkout@v1 # note: checkout@v2 breaks git history, so generating a changelog and
34+
# file naming for non-tagged builds will not work properly
35+
36+
# once cloned, we just run the GitHub Action for the packager project
37+
- name: Package and release
38+
uses: BigWigsMods/packager@v1

0 commit comments

Comments
 (0)