-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switches to BW packager, adds Wago as a depot
- Loading branch information
Evan Cobb
committed
Jul 28, 2024
1 parent
f0cf8cd
commit 4fd9cd1
Showing
3 changed files
with
18 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters