Skip to content

CopyComponentsByRegex v0.1.0-pre2 #6

CopyComponentsByRegex v0.1.0-pre2

CopyComponentsByRegex v0.1.0-pre2 #6

Workflow file for this run

name: Build VPM Listing
on:
workflow_dispatch:
release:
types: [published]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
env:
listPublishDirectory: Website
pathToCi: ci
jobs:
build-listing:
name: Build VPM Listing
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: vrchat-community/package-list-action
path: ${{ env.pathToCi }}
clean: false
- name: Restore Cache
uses: actions/cache@v4
with:
path: |
${{ env.pathToCi }}/.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
- name: Checkout Website Template
uses: actions/checkout@v4
with:
repository: vrchat-community/template-package-listing
path: template-package-listing
sparse-checkout: Website
clean: false
- name: Copy Website Template
run: cp -r template-package-listing/Website ${{ env.listPublishDirectory }}
- name: Build Package Version Listing
run: ${{ env.pathToCi }}/build.cmd BuildMultiPackageListing --root ${{ env.pathToCi }} --list-publish-directory $GITHUB_WORKSPACE/${{ env.listPublishDirectory }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ${{ env.listPublishDirectory }}
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4