Skip to content
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

v0.9.0: Added the new UI prefabs #16

Merged
merged 10 commits into from
Jan 8, 2025
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/[email protected]
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
Loading