Skip to content

Commit 4fd9cd1

Browse files
author
Evan Cobb
committed
Switches to BW packager, adds Wago as a depot
1 parent f0cf8cd commit 4fd9cd1

File tree

3 files changed

+18
-53
lines changed

3 files changed

+18
-53
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,22 @@
1-
name: Release new version of addon to WoW Interface
1+
name: Release new version of addon
22

33
on:
4-
workflow_dispatch:
5-
# Enables a button to manually run this against the main branch
64
push:
7-
# Enables automatic deploys off pushes/merges into the main branch
8-
branches: [ main ]
5+
tags:
6+
- v*
97

108
jobs:
119
build:
1210
runs-on: ubuntu-latest
1311

1412
steps:
15-
- name: Checkout the code
16-
uses: actions/checkout@v2
13+
- name: Checkout the code
14+
uses: actions/checkout@v2
1715

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

21-
- name: Put everything into a folder called OpenThosePouches
22-
run: cp -r OpenThosePouches.lua LICENSE README.md OpenThosePouches.toc OpenThosePouches/
23-
24-
- name: Zip it good
25-
run: zip -9 -r OpenThosePouches.zip OpenThosePouches/
26-
27-
- name: Parse WoW Addon Verions
28-
id: get_versions
29-
uses: icbat/parse-wow-addon-version@v1.1.0
30-
with:
31-
tocfile: OpenThosePouches.toc
32-
33-
- name: Create GH Release
34-
id: create_release
35-
uses: actions/create-release@v1
36-
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
with:
39-
tag_name: ${{ steps.get_versions.outputs.addon_version }}
40-
release_name: Release ${{ steps.get_versions.outputs.addon_version }}
41-
draft: false
42-
prerelease: false
43-
44-
- name: Upload GH Release Asset
45-
id: upload-release-asset
46-
uses: actions/upload-release-asset@v1
47-
env:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
with:
50-
upload_url: ${{ steps.create_release.outputs.upload_url }}
51-
asset_path: ./OpenThosePouches.zip
52-
asset_name: OpenThosePouches.zip
53-
asset_content_type: application/zip
54-
55-
- name: Upload to WoW Interface
56-
uses: icbat/wow-addon-upload-action@v1.0.3
57-
with:
58-
id: 26222
59-
zipFilePath: OpenThosePouches.zip
60-
compatible: ${{ steps.get_versions.outputs.supported_version_semantic }}
61-
version: ${{ steps.get_versions.outputs.addon_version }}
62-
apiKey: ${{ secrets.wowi_api_token }}

OpenThosePouches.toc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
## Title: Open Those Pouches
44
## Notes: Automatically opens and tries to loot any backpacks, satchels, or pouches as you loot them
55
## Author: @icbat
6-
## Version: 15
76
## IconTexture: Interface/Addons/OpenThosePouches/ick-logo
87

8+
### BigWigs Packager Fields
9+
## Version: @project-version@
10+
## X-Wago-ID: kGr03g6y
911
## X-WoWI-ID: 26222
1012

1113
# This addon

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Open Those Pouches
33

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

6-
Get it on [WoW Interface](https://www.wowinterface.com/downloads/info26222-OpenThosePouches.html), or use the [Cursebreaker tool](https://github.com/AcidWeb/CurseBreaker) (recommended)
6+
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)
77

88
## Contributing
99

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

15+
### Releasing
16+
17+
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 commit comments

Comments
 (0)