Skip to content

Commit

Permalink
Merge pull request #8 from mhco/master
Browse files Browse the repository at this point in the history
Add Auto-Release for WoWUp, Increase Delay to 1 Second, Update TOC File
  • Loading branch information
victorpoughon authored Jul 26, 2022
2 parents c81770b + 02ae9ce commit 6371b35
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 4 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# description of this workflow, can be anything you want
name: Package and release

# we need to let GitHub know _when_ we want to release, typically only when we create a new tag.
# this will target only tags, and not all pushes to the master branch.
# this part can be heavily customized to your liking, like targeting only tags that match a certain word,
# other branches or even pullrequests.
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 from the project on GitHub
env:
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} # "GITHUB_TOKEN" is a secret always provided to the workflow
# for your own token, the name cannot start with "GITHUB_"

# "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@v2
with:
fetch-depth: 0 # gets git history for changelogs

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

# another example where we supply additional arguments, this example is specifically to release
# for the Burning Crusade Classic version of the game and doesn't upload to WoWInterface
- name: Package and release for Burning Crusade Classic
uses: BigWigsMods/packager@v2
with:
args: -g bcc -w 0
4 changes: 4 additions & 0 deletions .pkgmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package-as: DingPics

ignore:
- docs
2 changes: 1 addition & 1 deletion DingPics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ frame:RegisterEvent("PLAYER_LEVEL_UP")
frame:SetScript("OnEvent", function (self, event)
-- wait a bit so the yellow animation appears 300ms seems good
RequestTimePlayed()
C_Timer.After(.3, Screenshot)
C_Timer.After(1, Screenshot)
end
)
4 changes: 2 additions & 2 deletions DingPics.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 11302
## Author: fouronnes
## Interface: 20504
## Title: DingPics
## Notes: Automatically save a screenshot when you level-up
## Author: fouronnes

DingPics.lua
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

World of Warcraft add-on to automatically screenshot when you level up.

By default the screenshot is triggered 300ms after the PLAYER_LEVEL_UP event for optimal view of the yellow animation. You can adjust this in DingPics.lua if you want.
By default the screenshot is triggered 1 second after the PLAYER_LEVEL_UP event for optimal view of the yellow animation. You can adjust this in DingPics.lua if you want.

## Install

Download the folder and extract in `BattleNet\World of Warcraft\_classic_\Interface\AddOns`. Make sure the folder is called `DingPics` and not `DingPics-master`.

We also suggest that you use WoWUp.io to manage your addons. To add this addon to WoWUp, go to the "Get Addons" tab, click the "Install from URL" button in the top right corner, and enter the URL of this repo (```https://github.com/fouronnes/DingPics```).
Binary file added docs/ding.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/social-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6371b35

Please sign in to comment.