diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c7d5b22..702bcbe 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -24,26 +24,26 @@ jobs: - name: Install dependencies run: yarn install - # Step 4: Verify that the problematic file exists (for debugging) + # Step 4: Run the script to generate the necessary file (if this is the script that generates it) + - name: Run rust-library.ts script to generate files + run: ts-node scripts/rust-library.ts + + # Step 5: Verify that the file is generated (for debugging purposes) - name: Verify file existence run: | if [ ! -f "./docs/get-started/cardano-serialization-lib/transaction-metadata.md" ]; then - echo "File not found: ./docs/get-started/cardano-serialization-lib/transaction-metadata.md" + echo "File not found after script execution: ./docs/get-started/cardano-serialization-lib/transaction-metadata.md" exit 1 else - echo "File exists: ./docs/get-started/cardano-serialization-lib/transaction-metadata.md" + echo "File exists after script execution: ./docs/get-started/cardano-serialization-lib/transaction-metadata.md" fi - # Step 5: Build the Docusaurus project (this uses your custom build command) + # Step 6: Build the Docusaurus site - name: Build Docusaurus site run: yarn build - # Step 6: Deploy the Docusaurus site to GitHub Pages + # Step 7: Deploy the Docusaurus site to GitHub Pages - name: Deploy to GitHub Pages run: yarn deploy env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub automatically provides this token - - # Optional: Clear the cache if there are issues with caching - - name: Clear Yarn cache (if needed) - run: yarn cache clean