Blender Tools for Rigging Characters with Unreal Engine 5 Skeleton #80
Workflow file for this run
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
name: PR | |
on: | |
pull_request: | |
branches: [ main ] | |
permissions: | |
id-token: write | |
contents: write | |
pull-requests: write | |
checks: write | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
persist-credentials: false | |
- name: "NPM Install, Build, and Cache" | |
id: npm-install-build-and-cache | |
uses: ./.github/actions/npm-install-build-and-cache | |
test: | |
name: Test | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
persist-credentials: false | |
- name: "Retrieve Dependencies and Build Artifacts" | |
id: retrieve-deps-and-build | |
uses: ./.github/actions/retrieve-deps-and-build | |
- name: Test | |
run: npm run test-all | |
type-check: | |
name: Type Check | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
persist-credentials: false | |
- name: "Retrieve Dependencies and Build Artifacts" | |
id: retrieve-deps-and-build | |
uses: ./.github/actions/retrieve-deps-and-build | |
- name: Type Check | |
run: npm run type-check-all | |
lint: | |
name: Lint | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
persist-credentials: false | |
- name: "Retrieve Dependencies and Build Artifacts" | |
id: retrieve-deps-and-build | |
uses: ./.github/actions/retrieve-deps-and-build | |
- name: Lint | |
run: npm run lint-all | |
publish-gh-pages: | |
name: Publish GitHub Pages | |
needs: [build] | |
runs-on: ubuntu-latest | |
env: | |
PR_PATH: pull/${{github.event.number}} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
persist-credentials: false | |
- name: "Retrieve Dependencies and Build Artifacts" | |
id: retrieve-deps-and-build | |
uses: ./.github/actions/retrieve-deps-and-build | |
- name: Set base URL for preview if PR | |
run: echo "BASE_URL=https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${{ env.PR_PATH }}/" >> $GITHUB_ENV | |
- name: Deploy to PR preview | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./github-pages-publisher/build | |
destination_dir: ${{ env.PR_PATH }} | |
- name: Add PR Preview comment | |
uses: hasura/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
repository: ${{ github.repository }} | |
number: ${{ github.event.number }} | |
id: deploy-preview | |
message: "A preview of this PR can be seen here:\n\n ✨ ${{ env.BASE_URL }} ✨\n\nChanges may take a few minutes to propagate. The source is here: https://github.com/${{ github.repository }}/tree/gh-pages/${{ env.PR_PATH }}/" | |
summary: | |
name: Summary | |
needs: [build, test, type-check, lint] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Summary | |
run: | | |
echo "Build: ${{ needs.build.result }}" | |
echo "Test: ${{ needs.test.result }}" | |
echo "Type Check: ${{ needs.type-check.result }}" | |
echo "Lint: ${{ needs.lint.result }}" |