Skip to content

Commit 33a95d0

Browse files
authored
Merge pull request #17 from PathOfBuildingCommunity/dev
[pull] dev from PathOfBuildingCommunity:dev
2 parents 2732bca + 9c8f205 commit 33a95d0

File tree

221 files changed

+222077
-76483
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

221 files changed

+222077
-76483
lines changed

.busted

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ return {
88
lpath = "../runtime/lua/?.lua;../runtime/lua/?/init.lua",
99
helper = "HeadlessWrapper.lua",
1010
ROOT = { "../spec" },
11+
["exclude-tags"] = "builds",
1112
},
1213
generate = {
1314
directory = "src",

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ body:
3333
id: actual
3434
attributes:
3535
label: What is the actual behaviour/value?
36-
description: Please write a a clear and concise description of what actually happens.
36+
description: Please write a clear and concise description of what actually happens.
3737
placeholder: E.g. When I'm hovering over [...], PoB displays [...].
3838
validations:
3939
required: true
@@ -53,9 +53,9 @@ body:
5353
- type: textarea
5454
id: build_code
5555
attributes:
56-
label: Build code
56+
label: Character build code
5757
description: Always provide a build code that exhibits the bug you want to report, even if it is not specific to a particular build. This helps us greatly to reproduce bugs faster.
58-
placeholder: Build codes can be either Base64 encoded text, or pastebin.com links to this text.
58+
placeholder: This can be either a code copied from the "Import/Export Build" tab or a link to a shared build.
5959
render: shell
6060
validations:
6161
required: true
@@ -64,6 +64,6 @@ body:
6464
attributes:
6565
label: Screenshots
6666
description: If you receive an error or experience graphical bugs, include one or multiple screenshots. GIFs or short videos are also okay, if the bug cannot be displayed in a still image.
67-
placeholder: In this text area, you can attach files directly, or link to them if they're hosted elsewhere instead.
67+
placeholder: In this text area, you can attach files directly or link to them if they're hosted elsewhere instead.
6868
validations:
6969
required: false

.github/ISSUE_TEMPLATE/feature_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ body:
2626
id: solution
2727
attributes:
2828
label: Describe the solution you'd like
29-
description: Please write a a clear and concise description of what you want to happen.
29+
description: Please write a clear and concise description of what you want to happen.
3030
placeholder: E.g. When I'm creating a new item, there should be an option to [...].
3131
validations:
3232
required: true

.github/release.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,21 @@ changelog:
99
authors:
1010
- github-actions
1111
categories:
12-
- title: Implemented Enhancements
12+
- title: New to Path of Building
1313
labels:
1414
- enhancement
15+
- title: User Interface
16+
labels:
17+
- user-interface
18+
- title: Accuracy Improvements
19+
labels:
20+
- bug:accuracy
21+
- bug:behavior
22+
- bug:calculation
1523
- title: Fixed Bugs
1624
labels:
1725
- bug
26+
- crash
1827
- title: Other changes
1928
labels:
20-
- "*"
29+
- "*"

.github/workflows/beta.yml

Lines changed: 12 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,56 +2,27 @@ name: Push beta branch
22
on:
33
schedule:
44
- cron: '0 0 * * 5'
5+
push:
6+
branches:
7+
- 'master'
58
workflow_dispatch:
69
jobs:
710
push-beta:
8-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
912
steps:
13+
- name: Set line endings
14+
run: git config --global core.autocrlf true
1015
- name: Checkout
11-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1217
with:
13-
ref: 'beta'
14-
- name: Fetch tags
15-
run: git fetch --prune --unshallow --tags
16-
- name: Get current date
17-
id: date
18-
run: echo "::set-output name=date::$(date +'%Y/%m/%d')"
19-
- name: Get current version
20-
id: current-version
21-
run: echo "::set-output name=ver::$(git describe --tags --abbrev=0 | sed 's/^.//')"
22-
- name: Get next version
23-
id: next-version
24-
run: |
25-
ver=`git describe --tags --abbrev=0`
26-
major=$(echo $ver | sed -r 's/^v([0-9]+)\.([0-9]+)\.([0-9]+)/\1/')
27-
minor=$(echo $ver | sed -r 's/^v([0-9]+)\.([0-9]+)\.([0-9]+)/\2/')
28-
patch=$(echo $ver | sed -r 's/^v([0-9]+)\.([0-9]+)\.([0-9]+)/\3/')
29-
let minor+=1
30-
semVer="$major.$minor.$patch"
31-
echo "::set-output name=ver::$(echo $semVer)"
32-
- name: Update from dev
18+
ref: 'dev'
19+
- name: Configure bot user
3320
run: |
3421
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
3522
git config --global user.name "github-actions[bot]"
36-
git rebase -X ours origin/dev
37-
- name: Install changelog generator
38-
run: sudo gem install github_changelog_generator --version 1.15.2
39-
- name: Generate Release notes
40-
run: github_changelog_generator --user ${{ github.repository_owner }} --project $(echo '${{ github.repository }}' | awk -F '/' '{print $2}') -t ${{ secrets.GITHUB_TOKEN }} --output temp_change.md --release-branch dev --exclude-labels invalid,duplicate --future-release ${{ steps.next-version.outputs.ver }} --since-tag `echo v${{ steps.current-version.outputs.ver }}` --max-issues 0 --no-issues true --date-format %Y/%m/%d
41-
- name: Tweak changelogs
42-
run: |
43-
sed -i '$d' temp_change.md
44-
sed -i 's/\[Quotae\]/\[Quote_a\]/' temp_change.md
45-
sed -i 's/\[learn2draw\]/\[Lexy\]/' temp_change.md;
46-
sed -i 's/\[Voronoff\]/\[tcid\]/' temp_change.md;
47-
echo "VERSION[${{ steps.current-version.outputs.ver }}][${{ steps.date.outputs.date }}]" | cat - temp_change.md | sed '2,6d' | sed -e '/^\*\*.*/,+1 d' | sed -r 's/\[\\#.* \(\[(.*)\]\(.*/\(\1\)/' | sed 's/^-/*/' | cat - changelog.txt > changelog_new.txt
48-
cat CHANGELOG.md | sed '1d' >> temp_change.md
49-
mv temp_change.md CHANGELOG.md
50-
mv changelog_new.txt changelog.txt
5123
- name: Update manifest.xml
52-
run: python3 update_manifest.py --quiet --in-place --set-version=${{ steps.next-version.outputs.ver }}
53-
24+
run: python3 update_manifest.py --quiet --in-place
5425
- name: Push to beta branch
5526
run: |
56-
git commit -am "Weekly beta-${{ steps.current-version.outputs.ver }} release" --allow-empty --author="github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
57-
git push origin beta
27+
git commit -am "Weekly beta release" --allow-empty --author="github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
28+
git push origin HEAD:beta --force

.github/workflows/installer.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Create new installer
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
release:
7+
runs-on: windows-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
with:
12+
repository: 'PathOfBuildingCommunity/PathOfBuilding-Installer'
13+
ref: 'master'
14+
ssh-key: '${{ secrets.POB_INSTALLER_KEY }}'
15+
- name: Create installer
16+
run: 'python3 make_release.py'
17+
- name: Upload artifact
18+
run: >
19+
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token;
20+
gh release upload ${{ github.event.release.tag_name }} (Get-ChildItem Dist -File).FullName --clobber -R ${{ github.repository }};
21+

.github/workflows/release.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
description: 'Version number to use for this release'
77
required: true
88
default: '2.x.x'
9+
releaseNoteUrl:
10+
description: 'Enter the location of edited release notes to use'
11+
required: false
912
jobs:
1013
release:
1114
runs-on: ubuntu-latest
@@ -15,23 +18,32 @@ jobs:
1518
with:
1619
ref: 'dev'
1720
- name: Generate Release notes
21+
if: ${{ github.event.inputs.releaseNoteUrl == '' }}
1822
run: >
1923
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token;
2024
gh release view $(basename $(gh release create v${{ github.event.inputs.releaseVersion }} --title "Release ${{ github.event.inputs.releaseVersion }}" --draft --generate-notes)) > temp_change.md
25+
- name: Use existing Release notes
26+
if: ${{ github.event.inputs.releaseNoteUrl != '' }}
27+
run: >
28+
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token;
29+
gh release view $(basename ${{ github.event.inputs.releaseNoteUrl }}) > temp_change.md
2130
- name: Tweak changelogs
2231
run: >
2332
sed -i '1,8d' temp_change.md;
2433
sed -i '1h;1d;$!H;$!d;G' temp_change.md;
2534
sed -i -re 's/\*\*Full Changelog\*\*: (.*)/\[Full Changelog\]\(\1\)\n/' temp_change.md;
2635
sed -i '/## New Contributors/,$d' temp_change.md;
36+
sed -i -re 's/^\*(.*)\sby\s@(.*)\sin\s(.*\/pull\/)(.*)/-\1 [\\#\4](\3\4) ([\2](https:\/\/github.com\/\2))/' temp_change.md;
37+
sed -i 's/\[Quotae/\[Quote_a/' temp_change.md;
38+
sed -i 's/\[learn2draw/\[Lexy/' temp_change.md;
39+
sed -i 's/\[Voronoff/\[Tom Clancy Is Dead/' temp_change.md;
40+
sed -i 's/\[PJacek/\[TPlant/' temp_change.md;
2741
cp temp_change.md changelog_temp.txt;
2842
cat CHANGELOG.md | sed '1d' >> temp_change.md;
2943
printf "# Changelog\n\n## [v${{ github.event.inputs.releaseVersion }}](https://github.com/PathOfBuildingCommunity/PathOfBuilding/tree/v${{ github.event.inputs.releaseVersion }}) ($(date +'%Y/%m/%d'))\n\n" | cat - temp_change.md > CHANGELOG.md;
3044
31-
sed -i 's/Quotae/Quote_a/' changelog_temp.txt;
32-
sed -i 's/learn2draw/Lexy/' changelog_temp.txt;
33-
sed -i 's/Voronoff/Tom Clancy Is Dead/' changelog_temp.txt;
34-
echo "VERSION[${{ github.event.inputs.releaseVersion }}][`date +'%Y/%m/%d'`]" | cat - changelog_temp.txt | sed '2,4d' | sed -e '/^##.*/,+1 d' | sed -r 's/by @(.*) in http.*/\(\1\)/' | cat - changelog.txt > changelog_new.txt;
45+
sed -i -re 's/^- (.*) \[.*\) \(\[(.*)\]\(.*/* \1 (\2)/' changelog_temp.txt;
46+
echo "VERSION[${{ github.event.inputs.releaseVersion }}][`date +'%Y/%m/%d'`]" | cat - changelog_temp.txt | sed '2,3d' | sed -re 's/^### (.*)\r/--- \1 ---/' | sed -e '/^##.*/,+1 d' | cat - changelog.txt > changelog_new.txt;
3547
rm temp_change.md;
3648
rm changelog_temp.txt;
3749
mv changelog_new.txt changelog.txt

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ src/Export/ggpk/Metadata/
2727
src/Export/ggpk/Data/
2828
src/Export/ggpk/*.exe
2929
src/Export/ggpk/*.dll
30+
31+
# Timeless Jewels
32+
src/Data/TimelessJewelData/*.bin

0 commit comments

Comments
 (0)