Change logo image in README #23
This file contains hidden or 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: Spec Progress - Generate Report | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| jobs: | |
| pages: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: llvm-tools-preview | |
| - name: Install cargo-nextest | |
| uses: taiki-e/install-action@nextest | |
| # 1. Run tests with nextest to generate JUnit XML | |
| - name: Run Tests with nextest | |
| run: cargo nextest run --color never --no-fail-fast --all-features --workspace 2>&1 | tee test_output.txt | |
| continue-on-error: true | |
| # 2. Generate Coverage Report | |
| - name: Install cargo-llvm-cov | |
| uses: taiki-e/install-action@cargo-llvm-cov | |
| - name: Generate Coverage JSON | |
| run: cargo llvm-cov --all-features --workspace --json --ignore-run-errors --output-path coverage.json | |
| continue-on-error: true | |
| # 3. Generate Custom "Are We Mod Yet?" Page | |
| - name: Generate Progress Page | |
| env: | |
| TEST_OUTPUT_FILE: test_output.txt | |
| run: bash .github/scripts/generate-progress-page.sh | |
| # 4. Copy logo to deployment directory | |
| - name: Copy Assets | |
| run: | | |
| cp img/hydmg10p.png ./gh-pages-deploy/logo.png | |
| # 6. Deploy to GitHub Pages (Master Only) | |
| - name: Deploy to GitHub Pages | |
| if: github.ref == 'refs/heads/master' | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./gh-pages-deploy | |
| force_orphan: true # Keeps the gh-pages branch history clean |