-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from etiquettestartshere/1.0.2
1.0.2
- Loading branch information
Showing
7 changed files
with
68 additions
and
13 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Release Creation | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
# Get part of the tag after the `v`. | ||
- name: Extract tag version number | ||
id: get_version | ||
uses: battila7/get-version-action@v2 | ||
|
||
# Remove HotReload and update version and download properties. | ||
- name: Modify Manifest to remove HotReload | ||
uses: microsoft/variable-substitution@v1 | ||
with: | ||
files: "module.json" | ||
env: | ||
flags.hotReload: false | ||
version: ${{steps.get_version.outputs.version-without-v}} | ||
download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip | ||
|
||
# Create zip file. | ||
- name: Create ZIP archive | ||
run: zip -r ./module.zip module.json LICENSE styles/ scripts/ lang/ | ||
|
||
# Create a release for this specific version. | ||
- name: Update Release with Files | ||
id: create_version_release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
name: ${{ github.event.release.name }} | ||
draft: false | ||
prerelease: false | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
artifacts: "./module.json, ./module.zip" | ||
tag: ${{ github.event.release.tag_name }} | ||
body: ${{ github.event.release.body }} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Contributing to Effective Tray | ||
- If you want to contribute, if your fix or suggestion is short and easy to understand, you can just make a PR. For anything more complicated, please make an issue first. | ||
- Any style is fine, any kind of suggestion is fine. PRs that touch more than one issue or idea are also fine as long as they come with an explanation. | ||
- Bear in mind my skill is limited and that will change what might get implemented. | ||
※ *Please do not change anything to typescript.* | ||
|
||
## Branches to Target | ||
- For small fixes, target the branch with the version the smallest increment up from the current release (generally **N.N.X**). | ||
- For fixes in line with a major system release, target the next major release (generally **N.X.N**). | ||
- Generally speaking, make your PR targets branches with current milestones. | ||
※ *If the above information becomes inapplicable, perhaps because I forgot to update it, just target the main branch.* |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { moduleSettings } from "./settings.mjs"; | ||
import { effectiveSocket, effectiveTray } from "./effective-tray.mjs"; | ||
|
||
Hooks.once("init", effectiveSocket.init); | ||
Hooks.once("init", moduleSettings.init); | ||
Hooks.once("init", effectiveTray.init); |