Added material on off-chain tokens and low-latency transfers #16
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: Build and Release PDF | |
| permissions: | |
| contents: write | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build_latex: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Git repository | |
| uses: actions/checkout@v4 | |
| - name: Compile LaTeX document | |
| uses: xu-cheng/latex-action@v3 | |
| with: | |
| root_file: Unicity.tex | |
| - name: Upload PDF as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Unicity-Whitepaper | |
| path: Unicity.pdf | |
| if-no-files-found: error | |
| compression-level: 0 | |
| release: | |
| needs: build_latex | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Git repository | |
| uses: actions/checkout@v4 | |
| - name: Download artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: Unicity-Whitepaper | |
| path: . | |
| - name: Get latest commit info | |
| id: commit | |
| run: | | |
| echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | |
| echo "release_date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV | |
| - name: Move 'latest' tag to current commit | |
| run: | | |
| git config user.name "${{ github.actor }}" | |
| git config user.email "${{ github.actor }}@users.noreply.github.com" | |
| git tag -f latest | |
| git push origin -f refs/tags/latest | |
| - name: Create or Update GitHub Release | |
| id: create_release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: latest | |
| name: "Unicity Whitepaper" | |
| body: | | |
| - This release contains the latest compiled version of the Unicity whitepaper. | |
| - Date: ${{ env.release_date }} | |
| - Commit: ${{ env.sha_short }} | |
| files: Unicity.pdf | |
| draft: false | |
| prerelease: false | |
| recreate: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |