forked from Forien/foundryvtt-forien-unidentified-items
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some bug fix #41
Open
p4535992
wants to merge
18
commits into
League-of-Foundry-Developers:master
Choose a base branch
from
p4535992:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Some bug fix #41
Changes from 17 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
438bb7b
version 1.0.4 beta
p4535992 c919879
u
p4535992 27aa11e
u
p4535992 39a225d
update workflows
p4535992 35e8db6
ready to PR
p4535992 649d4d3
little update
p4535992 fa6229b
start replacing typescript in favot of javascript and svlete
p4535992 34b03d3
fix module.json
p4535992 c63308f
converting to javascript + svelte
p4535992 7e8e5f8
convert ts to mjs
p4535992 e4b56bd
u
p4535992 5a2902a
finish conversion typescript to javascript+svelte
p4535992 fd7fc66
beta v11
p4535992 c153858
beta v11
p4535992 1204eec
ready to pr
p4535992 973a05f
ready tp pr
p4535992 40153e3
version 1.1.1
p4535992 2365681
Update README.md
p4535992 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,8 +1,18 @@ | ||
gulpfile.js | ||
.eslintrc.js | ||
.prettierrc.js | ||
dist | ||
jsconfig.json | ||
/dist | ||
/.pnp.js | ||
/.yarn/ | ||
|
||
.github/ | ||
dist/ | ||
docs/ | ||
external/ | ||
src/languages/ | ||
src/assets/ | ||
src/lang/ | ||
src/scripts/ | ||
src/styles/ | ||
src/templates/ | ||
src/**/*.svelte |
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,7 @@ | ||
.github export-ignore | ||
FUNDING.yml export-ignore | ||
|
||
.gitattributes export-ignore | ||
README.md export-ignore | ||
preview.jpg export-ignore | ||
patchnotes.md export-ignore |
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,2 @@ | ||
github: foundryworkshop | ||
custom: ["https://www.patreon.com/foundryworkshop] |
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,53 +1,131 @@ | ||
name: Release Creation | ||
|
||
on: | ||
on: | ||
release: | ||
types: [published] | ||
types: [ published ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
#Substitute the Manifest and Download URLs in the module.json | ||
- name: Substitute Manifest and Download Links For Versioned Ones | ||
id: sub_manifest_link_version | ||
uses: microsoft/variable-substitution@v1 | ||
with: | ||
files: 'src/module.json' | ||
env: | ||
version: ${{github.event.release.tag_name}} | ||
manifest: https://github.com/${{github.repository}}/releases/latest/download/module.json | ||
download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip | ||
|
||
# create a zip file with all files required by the module to add to the release | ||
- run: cd src; zip -r ./module.zip * | ||
|
||
# Create a release for this specific version | ||
- name: Update Release with Files | ||
id: create_version_release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true # set this to false if you want to prevent updating existing releases | ||
name: ${{ github.event.release.name }} | ||
draft: false | ||
prerelease: false | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
artifacts: 'src/module.json, src/module.zip' | ||
tag: ${{ github.event.release.tag_name }} | ||
body: ${{ github.event.release.body }} | ||
|
||
# Update the 'latest' release | ||
- name: Create Release | ||
id: create_latest_release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
name: Latest | ||
draft: false | ||
prerelease: false | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
artifacts: 'src/module.json,src/module.zip' | ||
tag: latest | ||
body: ${{ github.event.release.body }} | ||
- uses: actions/checkout@v2 | ||
|
||
# Substitute the Manifest and Download URLs in the module.json | ||
|
||
- name: Substitute Manifest and Download Links For Versioned Ones | ||
id: sub_release_manifest_version | ||
uses: microsoft/variable-substitution@v1 | ||
with: | ||
files: 'src/module.json' | ||
env: | ||
version: ${{github.event.release.tag_name}} | ||
url: https://github.com/${{github.repository}} | ||
manifest: https://github.com/${{github.repository}}/releases/latest/download/module.json | ||
download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip | ||
|
||
# for a FULL RELEASE | ||
# - name: Substitute Manifest and Download Links For Versioned Ones | ||
# if: "!github.event.release.prerelease" | ||
# id: sub_release_manifest_version | ||
# uses: microsoft/variable-substitution@v1 | ||
# with: | ||
# files: 'module.json' | ||
# env: | ||
# version: ${{github.event.release.tag_name}} | ||
# url: https://github.com/${{github.repository}} | ||
# manifest: https://github.com/${{github.repository}}/releases/latest/download/module.json | ||
# download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip | ||
|
||
# Substitute the Manifest and Download URLs in the module.json | ||
# for a PRE RELEASE. Manifest pointing to live module.json on branch, | ||
# which is updated after tag. | ||
# - name: Substitute Manifest and Download Links For Versioned Ones | ||
# if: "github.event.release.prerelease" | ||
# id: sub_prerelease_manifest_version | ||
# uses: microsoft/variable-substitution@v1 | ||
# with: | ||
# files: 'module.json' | ||
# env: | ||
# version: ${{github.event.release.tag_name}} | ||
# url: https://github.com/${{github.repository}} | ||
# manifest: https://raw.githubusercontent.com/${{github.repository}}/next/module.json | ||
# download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip | ||
|
||
# Install packages. | ||
- run: npm install | ||
|
||
# Build distribution. | ||
- run: npm run build | ||
|
||
- run: mkdir package | ||
|
||
- run: mv -v ./dist/* ./package/ | ||
|
||
# Create a zip file with all files required by the module to add to the release | ||
#- run: zip -r ./module.zip module.json LICENSE module.js module.js.map style.css templates/ languages/ packs/ assets/ | ||
# - run: zip -r ./package/module.zip ./package/* | ||
|
||
# && ensures that zip only runs if the directory was correctly changed, | ||
# and the parentheses run everything in a subshell, so the current directory | ||
# is restored at the end. Using OLDPWD avoids having to calculate the relative path to package.zip. | ||
# https://unix.stackexchange.com/questions/385405/zip-all-files-and-subfolder-in-directory-without-parent-directory | ||
- run: (cd package && zip -r "$OLDPWD/module.zip" .) | ||
|
||
- name: Update Release with Files | ||
id: create_version_release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true # Set this to false if you want to prevent updating existing releases | ||
name: ${{ github.event.release.name }} | ||
draft: false | ||
prerelease: false | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
artifacts: './src/module.json, ./module.zip' | ||
tag: ${{ github.event.release.tag_name }} | ||
body: ${{ github.event.release.body }} | ||
|
||
# Create a release for this specific version | ||
# - name: Update Release with Files | ||
# if: "!github.event.release.prerelease" | ||
# id: create_version_release | ||
# uses: ncipollo/release-action@v1 | ||
# with: | ||
# allowUpdates: true # Set this to false if you want to prevent updating existing releases | ||
# 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 }} | ||
|
||
# OR create a pre-release for this specific version | ||
# - name: Update Release with Files | ||
# if: "github.event.release.prerelease" | ||
# id: create_version_prerelease | ||
# uses: ncipollo/release-action@v1 | ||
# with: | ||
# allowUpdates: true # Set this to false if you want to prevent updating existing releases | ||
# name: ${{ github.event.release.name }} | ||
# draft: false | ||
# prerelease: true | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# artifacts: './module.json, ./module.zip' | ||
# tag: ${{ github.event.release.tag_name }} | ||
# body: ${{ github.event.release.body }} | ||
|
||
#update next branch | ||
# - name: Prepare repository | ||
# if: "github.event.release.prerelease" | ||
# run: | | ||
# git config --global user.name '${{github.actor}}' | ||
# git config --global user.email '${{github.actor}}@users.noreply.github.com' | ||
# git add module.json | ||
# git stash | ||
# git clean -f | ||
# git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY" | ||
# git fetch origin "next" | ||
# git switch -c "next" "origin/next" | ||
# git checkout stash module.json | ||
# git commit -m "${{github.event.release.tag_name}} manifest" | ||
# git push -f |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this file deleted? It's required in order to push the package release to Foundry's module registry.