diff --git a/.github/workflows/latexmk.yaml b/.github/workflows/latexmk.yaml index 1ca05a4..6db6718 100644 --- a/.github/workflows/latexmk.yaml +++ b/.github/workflows/latexmk.yaml @@ -17,7 +17,24 @@ jobs: extra_nix_config: | experimental-features = nix-command flakes - run: nix build - - uses: actions/upload-artifact@v2 + - run: mv result ms-thesis.pdf + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - name: ms-thesis.pdf - path: ./result + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./ms-thesis.pdf + asset_name: ms-thesis.pdf + asset_content_type: application/pdf