Leedehai / typst-physics

physica: vectors, fields, differentials, derivatives, Dirac brakets, tensors, and more. See examples in the manual PDF.
https://github.com/Leedehai/typst-physics
MIT License
343 stars 11 forks source link

ci: Release #9

Closed YDX-2147483647 closed 1 year ago

YDX-2147483647 commented 1 year ago

Preview in my repo:

Fixes #8

Leedehai commented 1 year ago

Isn't it wonderful?! Thanks!

Leedehai commented 1 year ago

Hi - it appears the link in the PR content (https://github.com/Leedehai/typst-physics/releases/latest/download/physica-manual.pdf) doesn't work? It says "Not Found".

YDX-2147483647 commented 1 year ago

Really sorry for that… Release permission is not granted.

Research:

The link in my repo works. It says not found because the latest release (https://github.com/Leedehai/typst-physics/releases/tag/v0.7.5) does not contain the manual (the release wasn't created by ci).

I've checked the log of release ci in your repo. The run failed because GitHub responded with 403 Forbidden.

GitHub forbids untrusted workflows to create releases: https://github.com/softprops/action-gh-release/issues/236#issuecomment-1150530128, https://github.com/softprops/action-gh-release/issues/366#issuecomment-1605875364, …

Could you try the following solution?

  1. Go to repo settings → (left bar) Actions → General → (scroll down) Workflow permissions , select Read and write permissions. Save.

    If it's already selected, that's ok.

  2. Add the following lines to .github/workflows/release.yml. (or merge #10)

    permissions:
     contents: write

    contents: write allows the action to create a release.

  3. Kick the ci. For example:

    $ git tag v0.7.5-alpha
    $ git push origin v0.7.5-alpha