From 1542cd630de42b1ee108e14bd00e598a8818398f Mon Sep 17 00:00:00 2001 From: MyGamesDevelopmentAcc <116946134+MyGamesDevelopmentAcc@users.noreply.github.com> Date: Tue, 1 Nov 2022 00:28:01 +0100 Subject: [PATCH] Create release.yml (#68) --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..abaed9a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: Package and release + +# we need to let GitHub know _when_ we want to release, typically only when we create a new tag. +# this will target only tags +on: + push: + tags: + - '**' + +jobs: + release: + 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 + + + # "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 + + + # once cloned, we just run the GitHub Action for the packager project + - name: Package and release + uses: BigWigsMods/packager@v2