Skip to content

Commit

Permalink
Merge pull request #16 from kurone-kito/add-the-new-features
Browse files Browse the repository at this point in the history
v0.9.0: Added the new UI prefabs
  • Loading branch information
kurone-kito authored Jan 8, 2025
2 parents 718d595 + e5c8131 commit ab819fd
Show file tree
Hide file tree
Showing 35 changed files with 27,825 additions and 8,061 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/build-listing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ env:
pathToCi: ci

on:
workflow_dispatch:
workflow_run:
workflows:
- Build Release
types:
- completed
release:
types:
- created
Expand All @@ -19,47 +13,53 @@ on:
- published
- released
- unpublished
workflow_dispatch:
workflow_run:
types:
- completed
workflows:
- Build Release

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
pages: write

# Allow one concurrent deployment
concurrency:
group: pages
cancel-in-progress: true
group: pages

jobs:
build-listing:
name: build-listing
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
name: build-listing
runs-on: ubuntu-latest
steps:
- name: Checkout Local Repository
uses: actions/checkout@v4
- name: Checkout Automation Repository without removing prior checkouts
uses: actions/checkout@v4
with:
repository: vrchat-community/package-list-action
path: ${{ env.pathToCi }}
clean: false
path: ${{ env.pathToCi }}
repository: vrchat-community/package-list-action
- name: Deploy the global.json file
run: cp "${{ github.workspace }}/global.json" "${{ env.pathToCi }}/"
- name: Load cached data from previous runs
uses: actions/cache@v4
with:
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
path: |
${{ env.pathToCi }}/.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
- name: Build Package Version Listing with Nuke
run: '"${{ env.pathToCi }}/build.cmd" BuildRepoListing --root "${{ env.pathToCi }}" --list-publish-directory "$GITHUB_WORKSPACE/${{ env.listPublishDirectory }}" --current-package-name "${{ vars.PACKAGE_NAME }}"'
env:
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Build Package Version Listing with Nuke
run: '"${{ env.pathToCi }}/build.cmd" BuildRepoListing --root "${{ env.pathToCi }}" --list-publish-directory "$GITHUB_WORKSPACE/${{ env.listPublishDirectory }}" --current-package-name "${{ vars.PACKAGE_NAME }}"'
- name: Prepare for GitHub Pages deployment
uses: actions/configure-pages@v5
with:
Expand All @@ -69,8 +69,8 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
path: ${{ env.listPublishDirectory }}
- name: Deploy the uploaded VPM Listing Website to GitHub Pages
id: deployment
- id: deployment
name: Deploy the uploaded VPM Listing Website to GitHub Pages
uses: actions/deploy-pages@v4
- name: Trigger the action of the curation repository
uses: peter-evans/repository-dispatch@v3
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
env:
listPublishDirectory: Website
packagePath: Packages/${{ vars.PACKAGE_NAME }}
pathToCi: ci
unityPackage: ${{ vars.PACKAGE_NAME }}-feature.unitypackage
zipFile: ${{ vars.PACKAGE_NAME }}-feature.zip
runs-on: ubuntu-latest
steps:
- name: Checkout Local Repository
uses: actions/checkout@v4
Expand All @@ -26,24 +26,24 @@ jobs:
- name: Make a UnityPackage version of the Package for release
uses: pCYSl5EDgo/create-unitypackage@v1
with:
package-path: ${{ env.unityPackage }}
include-files: metaList
package-path: ${{ env.unityPackage }}
- name: Checkout Automation Repository without removing prior checkouts
uses: actions/checkout@v4
with:
repository: vrchat-community/package-list-action
path: ${{ env.pathToCi }}
clean: false
path: ${{ env.pathToCi }}
repository: vrchat-community/package-list-action
- name: Deploy the global.json file
run: cp "${{ github.workspace }}/global.json" "${{ env.pathToCi }}/"
- name: Load cached data from previous runs
uses: actions/cache@v4
with:
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
path: |
${{ env.pathToCi }}/.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
- name: Build Package Version Listing with Nuke
run: '"${{ env.pathToCi }}/build.cmd" BuildRepoListing --root "${{ env.pathToCi }}" --list-publish-directory "$GITHUB_WORKSPACE/${{ env.listPublishDirectory }}" --current-package-name "${{ vars.PACKAGE_NAME }}"'
env:
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Build Package Version Listing with Nuke
run: '"${{ env.pathToCi }}/build.cmd" BuildRepoListing --root "${{ env.pathToCi }}" --list-publish-directory "$GITHUB_WORKSPACE/${{ env.listPublishDirectory }}" --current-package-name "${{ vars.PACKAGE_NAME }}"'
34 changes: 17 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,30 @@ on:

jobs:
config:
runs-on: ubuntu-latest
outputs:
config_package: ${{ steps.config_package.outputs.configPackage }}
runs-on: ubuntu-latest
steps:
- name: Ensure that required repository variable has been created for the Package
id: config_package
- id: config_package
name: Ensure that required repository variable has been created for the Package
run: |
if [ "${{ vars.PACKAGE_NAME }}" != "" ]; then
echo "configPackage=true" >> $GITHUB_OUTPUT;
else
echo "configPackage=false" >> $GITHUB_OUTPUT;
fi
build:
needs: config
runs-on: ubuntu-latest
permissions:
contents: write
env:
packagePath: Packages/${{ vars.PACKAGE_NAME }}
stableVersion:
unityPackage:
version:
zipFile:
if: needs.config.outputs.config_package == 'true'
needs: config
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- id: gpg
name: Import the GPG key
Expand All @@ -48,8 +48,8 @@ jobs:
uses: sergeysova/jq-action@v2
with:
cmd: jq -r ".version" "${{ env.packagePath }}/package.json"
- name: Detect whether the version is a stable release
id: stable-match
- id: stable-match
name: Detect whether the version is a stable release
# cspell: disable-next-line
uses: kaisugi/action-regex-match@v1.0.1
with:
Expand All @@ -63,32 +63,32 @@ jobs:
echo "version=${{ steps.version.outputs.value }}" >> $GITHUB_ENV
echo "zipFile=${{ vars.PACKAGE_NAME }}-${{ steps.version.outputs.value }}.zip" >> $GITHUB_ENV
- name: Zip the Package for release
working-directory: "${{ env.packagePath }}"
run: zip -r -9 "${{ github.workspace }}/${{ env.zipFile }}" .
working-directory: "${{ env.packagePath }}"
- name: Build a list of .meta files for future use
run: find "${{ env.packagePath }}/" -name '*.meta' -type f >> metaList
- name: Make a UnityPackage version of the Package for release
uses: pCYSl5EDgo/create-unitypackage@v1
with:
package-path: ${{ env.unityPackage }}
include-files: metaList
package-path: ${{ env.unityPackage }}
- name: Zip the UnityPackage for release
run: zip -r -9 "${{ env.unityPackage }}.zip" ${{ env.unityPackage }} LICENSE README.md
- name: Sign the artifacts
- env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
name: Sign the artifacts
run: |
echo "${GPG_PASSPHRASE}" | gpg --batch -ab "${{ env.zipFile }}"
echo "${GPG_PASSPHRASE}" | gpg --batch -ab "${{ env.unityPackage }}"
echo "${GPG_PASSPHRASE}" | gpg --batch -ab "${{ env.unityPackage }}.zip"
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Make a release tag of the version from the package.json file
id: tag_version
- id: tag_version
name: Make a release tag of the version from the package.json file
# cspell: disable-next-line
uses: rickstaa/action-create-tag@v1
with:
tag: "${{ env.version }}"
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
tag: "${{ env.version }}"
- name: Publish the Release to GitHub
uses: softprops/action-gh-release@v2
with:
Expand Down
Loading

0 comments on commit ab819fd

Please sign in to comment.