Skip to content

Commit

Permalink
Switches to BW packager, adds Wago as a depot
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Cobb committed Jul 28, 2024
1 parent f0cf8cd commit 4fd9cd1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 53 deletions.
62 changes: 11 additions & 51 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,22 @@
name: Release new version of addon to WoW Interface
name: Release new version of addon

on:
workflow_dispatch:
# Enables a button to manually run this against the main branch
push:
# Enables automatic deploys off pushes/merges into the main branch
branches: [ main ]
tags:
- v*

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Checkout the code
uses: actions/checkout@v2

- name: Create 'dist' folder
run: mkdir OpenThosePouches/
- name: Package and Upload to all the places
uses: BigWigsMods/packager@v2
env:
WAGO_API_TOKEN: ${{secrets.WAGO_API_TOKEN}}
WOWI_API_TOKEN: ${{secrets.WOWI_API_TOKEN}}
GITHUB_OAUTH: ${{secrets.GITHUB_TOKEN}}

- name: Put everything into a folder called OpenThosePouches
run: cp -r OpenThosePouches.lua LICENSE README.md OpenThosePouches.toc OpenThosePouches/

- name: Zip it good
run: zip -9 -r OpenThosePouches.zip OpenThosePouches/

- name: Parse WoW Addon Verions
id: get_versions
uses: icbat/[email protected]
with:
tocfile: OpenThosePouches.toc

- name: Create GH Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_versions.outputs.addon_version }}
release_name: Release ${{ steps.get_versions.outputs.addon_version }}
draft: false
prerelease: false

- name: Upload GH Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./OpenThosePouches.zip
asset_name: OpenThosePouches.zip
asset_content_type: application/zip

- name: Upload to WoW Interface
uses: icbat/[email protected]
with:
id: 26222
zipFilePath: OpenThosePouches.zip
compatible: ${{ steps.get_versions.outputs.supported_version_semantic }}
version: ${{ steps.get_versions.outputs.addon_version }}
apiKey: ${{ secrets.wowi_api_token }}
4 changes: 3 additions & 1 deletion OpenThosePouches.toc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
## Title: Open Those Pouches
## Notes: Automatically opens and tries to loot any backpacks, satchels, or pouches as you loot them
## Author: @icbat
## Version: 15
## IconTexture: Interface/Addons/OpenThosePouches/ick-logo

### BigWigs Packager Fields
## Version: @project-version@
## X-Wago-ID: kGr03g6y
## X-WoWI-ID: 26222

# This addon
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Open Those Pouches

A WoW addon for automatically opening any loot pouches you acquire when you get them. Never find your bags full of other bags again!

Get it on [WoW Interface](https://www.wowinterface.com/downloads/info26222-OpenThosePouches.html), or use the [Cursebreaker tool](https://github.com/AcidWeb/CurseBreaker) (recommended)
Get it on [WoW Interface](https://www.wowinterface.com/downloads/info26222-OpenThosePouches.html), [Wago](https://addons.wago.io/addons/open-those-pouches), or use the [Cursebreaker tool](https://github.com/AcidWeb/CurseBreaker) (recommended)

## Contributing

Expand All @@ -12,3 +12,6 @@ Get it on [WoW Interface](https://www.wowinterface.com/downloads/info26222-OpenT
1. Make your changes in the fork
1. Submit a Pull Request back for review to this repo

### Releasing

Release new versions by pushing a tag to the main branch of the form `v12345`. The GitHub action should take care of the rest.

0 comments on commit 4fd9cd1

Please sign in to comment.