Chore: update css #22
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: "Generate HTML and PDF" | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - flake.* | |
| - resume.md | |
| - style.css | |
| jobs: | |
| generate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: cachix/install-nix-action@v31 | |
| with: | |
| github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build Resumes | |
| run: | | |
| mkdir out | |
| nix build | |
| cp result/resume/resume.html out/${{ github.actor}}_resume.html | |
| cp result/resume/resume.pdf out/${{ github.actor}}_resume.pdf | |
| cp result/resume/resume.md out/${{ github.actor}}_resume.md | |
| - name: Store Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: resume | |
| path: out/ | |
| publish: | |
| runs-on: ubuntu-latest | |
| needs: generate | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Retrieve Artifacts | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: resume | |
| path: out/ | |
| - name: Stage | |
| run: | | |
| mkdir public | |
| cp out/${{ github.actor }}_resume.html public/index.html | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./public | |
| - name: Set Tag | |
| id: current-datetime | |
| run: echo "CURRENT_DATETIME=$(date +'%Y-%m-%d-%H_%M_%S%z')" >> "$GITHUB_OUTPUT" | |
| - name: Build Release | |
| shell: bash | |
| run: | | |
| gh release create "${{ steps.current-datetime.outputs.CURRENT_DATETIME }}" \ | |
| --title "${{ steps.current-datetime.outputs.CURRENT_DATETIME }}" \ | |
| --notes "${{ steps.current-datetime.outputs.CURRENT_DATETIME }}" \ | |
| "out/${{ github.actor }}_resume.html" \ | |
| "out/${{ github.actor }}_resume.md" \ | |
| "out/${{ github.actor }}_resume.pdf" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |