diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d01512f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Package and release + +on: + push: + tags: + - '**' + +jobs: + + # "release" is a job, you can name it anything you want + 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: + GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} # "GITHUB_TOKEN" is a secret always provided to the workflow + # for your own token, the name cannot start with "GITHUB_" + + # "steps" holds a list of all the steps needed to package and release our AddOn + steps: + + # we first have to clone the AddOn project, this is a required step + - name: Clone project + uses: actions/checkout@v3 + with: + fetch-depth: 0 # gets git history for changelogs + + # once cloned, we just run the GitHub Action for the packager project + - name: Package and release + uses: BigWigsMods/packager@v2