This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
-
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 #10 from Yuhanawa/Allnew
Allnew
- Loading branch information
Showing
218 changed files
with
8,530 additions
and
10,791 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 |
---|---|---|
@@ -1,69 +1,61 @@ | ||
name: Build | ||
name: Update Versions and Upload to Releases Branch | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
update-and-release: | ||
if: ${{ github.actor != 'github-actions[bot]' }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2.2.4 | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: latest | ||
run_install: true | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Update-versions | ||
- name: Update versions | ||
run: pnpm run update-versions | ||
|
||
- name: Build | ||
run: pnpm run build | ||
|
||
- name: Git config | ||
- name: Configure Git | ||
run: | | ||
git config --local user.email github-actions[bot]@users.noreply.github.com | ||
git config --local user.name github-actions[bot] | ||
git config --global core.autocrlf true | ||
git config --global core.safecrlf false | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
- name: Check changes | ||
id: check | ||
- name: Check for changes in userscripts | ||
id: check_changes | ||
run: | | ||
changed=$(git diff --name-only remotes/origin/master..remotes/origin/releases -- src) | ||
if [ -n "$changed" ]; then | ||
echo "::set-output name=has_changes::true" | ||
else | ||
echo "::set-output name=has_changes::false" | ||
git add userscripts | ||
if git diff --staged --quiet; then | ||
echo "has_changes=false" >> $GITHUB_OUTPUT | ||
else | ||
echo "has_changes=true" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Commit versions-update | ||
if: steps.check.outputs.has_changes == 'true' | ||
- name: Commit and push to master | ||
if: steps.check_changes.outputs.has_changes == 'true' | ||
run: | | ||
git add src | ||
git commit -m "Update versions" | ||
git commit -m "ci: Update versions" | ||
git push origin master | ||
- name: Push to ref | ||
if: steps.check.outputs.has_changes == 'true' | ||
- name: Create and push to releases branch | ||
run: | | ||
git push origin HEAD:${{ github.ref_name }} | ||
- name: Commit releases | ||
run: | | ||
git add -f out | ||
git commit -m "CI build" | ||
- name: Push to releases | ||
run: | | ||
git push -f origin HEAD:releases | ||
git checkout --orphan releases | ||
git rm -rf . | ||
if [ ! -d "dist/userscripts" ]; then | ||
echo "Error: dist/userscripts directory not found" >&2 | ||
exit 1 | ||
fi | ||
git add dist | ||
git commit -m "ci: Update release files" | ||
git push origin releases --force |
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,4 +1,5 @@ | ||
dist | ||
gmu.dev.json | ||
|
||
### VisualStudioCode template | ||
.vscode/* | ||
|
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 @@ | ||
module.exports = { extends: ["@commitlint/config-conventional"] }; |
This file was deleted.
Oops, something went wrong.
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,5 +1,3 @@ | ||
/scripts/ | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
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
Oops, something went wrong.