Skip to content

Commit

Permalink
added: generation to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexnorvag committed Sep 12, 2024
1 parent 59364e1 commit 76dd7f5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 76dd7f5

Please sign in to comment.