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