Skip to content

Commit

Permalink
Packaging update
Browse files Browse the repository at this point in the history
  • Loading branch information
HunterBarclay committed Jul 1, 2024
1 parent 8fbe56b commit 0c2f950
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/FissionPackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,25 @@ jobs:
run: |
echo "timestamp=$(date +'%Y-%m-%dT%H-%M-%S')" >> $GITHUB_OUTPUT
- name: Cache downloaded assets
id: cache-assets
uses: actions/cache@v2
with:
path: fission/public/
key: ${{ runner.os }}-assets-v1
restore-keys: |
${{ runner.os }}-assets-
- name: Download assets if not cached
if: steps.cache-assets.outputs.cache-hit != 'true'
run: |
cd fission
curl -o public/assetpack.zip https://synthesis.autodesk.com/Downloadables/assetpack.zip && unzip -o public/assetpack.zip -d public/
- name: Install Dependencies
run: |
cd fission
rm package-lock.json
npm install
- name: Get package info
Expand All @@ -37,11 +53,19 @@ jobs:
id: build
run: |
cd fission
npm run build
npm run build:prod
npm run build:dev
- name: Upload Artifact
uses: actions/upload-artifact@v4
id: upload-artifact
id: upload-artifact-prod
with:
name: "${{ steps.info.outputs.name }}@${{ steps.info.outputs.version }}[${{ steps.date.outputs.timestamp }}]"
path: fission/dist/
path: fission/dist/prod/

- name: Upload Artifact
uses: actions/upload-artifact@v4
id: upload-artifact-dev
with:
name: "${{ steps.info.outputs.name }}/dev@${{ steps.info.outputs.version }}[${{ steps.date.outputs.timestamp }}]"
path: fission/dist/dev/
3 changes: 2 additions & 1 deletion fission/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
"scripts": {
"dev": "vite --open",
"build": "tsc && vite build",
"build:prod": "tsc && vite build --base=/fission/ --outDir dist/prod",
"build:dev": "tsc && vite build --base=/fission-closed/ --outDir dist/dev",
"preview": "vite preview --base=/fission/",
"test": "vitest",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives",
"lint:fix": "eslint . --ext ts,tsx --report-unused-disable-directives --fix",
"prettier": "bun x prettier src --check || npx prettier src --check",
"prettier:fix": "bun x prettier src --write || npx prettier src --write",
"format": "(bun run prettier:fix && bun run lint:fix) || (npm run prettier:fix && npm run lint:fix)",
"build:prod": "tsc && vite build --base=/fission/",
"assetpack": "curl -o public/assetpack.zip https://synthesis.autodesk.com/Downloadables/assetpack.zip && tar -xf public/assetpack.zip -C public/",
"playwright:install": "bun x playwright install || npx playwright install"
},
Expand Down

0 comments on commit 0c2f950

Please sign in to comment.