Skip to content

Commit

Permalink
add bw auto packager
Browse files Browse the repository at this point in the history
  • Loading branch information
RedAces committed Jan 20, 2025
1 parent c6199be commit 474598b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# description of this workflow, can be anything you want
name: Package and release

# we need to let GitHub know _when_ we want to release.
# this is typically only when we create a new tag.
# make sure your tags are annotated!
on:
push:
tags:
- '**'

# a workflow is built up as jobs, and within these jobs are steps
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 for the project on GitHub
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} # this secret is pre-provided for the workflow and does not
# need to be added yourself, we just reference it here.

# "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@v4
with:
fetch-depth: 0 # gets entire git history, needed for automatic changelogs

# once cloned, we just run the GitHub Action
- name: Package and release
uses: BigWigsMods/packager@v2

0 comments on commit 474598b

Please sign in to comment.