Quantcast Guide: Automagically package and publish addons - Page 4 - WoWInterface
Thread Tools Display Modes
10-01-19, 09:06 AM   #61
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,696
Originally Posted by MooreaTv View Post
You can use Github Actions (just need to signup for it and afaik everyone asking gets immediate access to it) to run the packager with no other dependencies

here is an example:
https://github.com/mooreatv/AuctionD...packaging.yaml
There are plans for something simpler than that
  Reply With Quote
02-01-20, 05:19 PM   #62
yess
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 23
Classic Release

How do I make and additional classic release?

Can I just add add asecond script line like this?:

script: curl -s https://raw.githubusercontent.com/Bi...ter/release.sh | bash
script: curl -s https://raw.githubusercontent.com/Bi...ter/release.sh -g 1.13.3 | bash

Together with the tags for the toc:

#@[email protected]
## Interface: 80200
#@[email protected]
#@[email protected]
# ## Interface: 11303
#@[email protected]
  Reply With Quote
02-01-20, 07:28 PM   #63
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,696
Originally Posted by yess View Post
How do I make and additional classic release?

Can I just add add asecond script line like this?:

script: curl -s https://raw.githubusercontent.com/Bi...ter/release.sh | bash
script: curl -s https://raw.githubusercontent.com/Bi...ter/release.sh -g 1.13.3 | bash

Together with the tags for the toc:

#@[email protected]
## Interface: 80200
#@[email protected]
#@[email protected]
# ## Interface: 11303
#@[email protected]
The TOC file looks right, but remove the "# " at the front of 11303.
For the script part I'm unsure, I stopped using Travis.
  Reply With Quote
02-01-20, 10:05 PM   #64
yess
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 23
What are you using now?
  Reply With Quote
02-02-20, 05:18 AM   #65
Ketho
A Molten Giant
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 899
Is there a guide for github actions? (preferably not from moorea)
  Reply With Quote
02-10-20, 05:04 PM   #66
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,696
Originally Posted by Ketho View Post
Is there a guide for github actions? (preferably not from moorea)
We had plans of supporting actions directly with the packager repo (see https://github.com/BigWigsMods/packager/pull/44), but we hit some snags with the implementation (both actions and "packages") by GitHub. Don't know if that's been resolved or not now, feel free to test it.
  Reply With Quote
02-12-20, 02:23 AM   #67
Ketho
A Molten Giant
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 899
Originally Posted by p3lim View Post
Don't know if that's been resolved or not now, feel free to test it.

I'm not sure what I'm even doing but the workflow seemed to work, it packaged a tag for me
https://github.com/ketho-wow/KethoIn...runs/440568923
  Reply With Quote
02-14-20, 05:49 PM   #68
nebula
A Deviate Faerie Dragon
 
nebula's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2007
Posts: 16
Originally Posted by Ketho View Post
I'm not sure what I'm even doing but the workflow seemed to work, it packaged a tag for me
https://github.com/ketho-wow/KethoIn...runs/440568923
You only need that second step (the block after "# run release.sh with arguments") for it to work

A basic non-docker workflow would be something like this: https://gist.github.com/nebularg/7b2...de591023cca245

As another example, here is the workflow I use for PitBull4: https://github.com/nebularg/PitBull4...lows/build.yml
  Reply With Quote
02-14-20, 06:00 PM   #69
nebula
A Deviate Faerie Dragon
 
nebula's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2007
Posts: 16
Originally Posted by yess View Post
How do I make and additional classic release?

Can I just add add asecond script line like this?:

script: curl -s https://raw.githubusercontent.com/Bi...ter/release.sh | bash
script: curl -s https://raw.githubusercontent.com/Bi...ter/release.sh -g 1.13.3 | bash
To add another script entry you need to make it a list and to build classic you'd need to fix the args, so you'd end up with

Code:
script:
  - curl -s https://raw.githubusercontent.com/BigWigsMods/packager/master/release.sh | bash
  - curl -s https://raw.githubusercontent.com/BigWigsMods/packager/master/release.sh | bash -s -- -g 1.13.3
Although you might want to flip the build order so the retail version is shown in the big "Main File" box on the CurseForge files page. (#justnitpickythings)

Originally Posted by yess View Post
Together with the tags for the toc:
Yea, that is correct (looks a bit awkward, I know)

Last edited by nebula : 02-14-20 at 06:14 PM.
  Reply With Quote
02-20-20, 01:35 AM   #70
Ketho
A Molten Giant
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 899
Originally Posted by nebula View Post
You only need that second step (the block after "# run release.sh with arguments") for it to work

Oh, thanks! I changed it to this workflow now

It did throw an error when uploading a file to GitHub. Something about the file already existing, although I don't see the zip in my release assets
edit: must be just a mishap, it's working on my other projects
Code:
Creating GitHub release: https://github.com/ketho-wow/VendorPrice/releases/tag/1.3.1
Uploading VendorPrice-1.3.1-classic.zip... Error (422)
{"message":"Validation Failed","request_id":"07C1:101E:B0DCA:E52E2:5E4E3158","documentation_url":"https://developer.github.com/v3","errors":[{"resource":"ReleaseAsset","code":"already_exists","field":"name"}]}

Last edited by Ketho : 02-20-20 at 05:03 PM.
  Reply With Quote

WoWInterface » Developer Discussions » Tutorials & Other Helpful Info. » Guide: Automagically package and publish addons

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off