Building binary releases #2
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: Building binary releases | |
| on: | |
| workflow_dispatch | |
| permissions: | |
| contents: write | |
| jobs: | |
| build_pkg: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install prerequisites | |
| run: | | |
| cd /tmp/ | |
| APT_PARAMS='sudo apt -y -qq -o=Dpkg::Use-Pty=0' | |
| $APT_PARAMS update | |
| $APT_PARAMS install curl git | |
| curl -fsSL https://get.pnpm.io/install.sh | sh - | |
| source /home/runner/.bashrc | |
| - name: Build | |
| run: | | |
| cd /tmp/ | |
| git clone "https://github.com/SphericalKat/medium.rip.git" | |
| cd "/tmp/medium.rip/frontend/" | |
| mv postcss.config.ts postcss.config.cjs | |
| pnpm i | |
| pnpm approve-builds | |
| pnpm run build | |
| cd "/tmp/medium.rip/" | |
| go mod download | |
| go build -ldflags='-w -s -extldflags "-static"' . | |
| ls -alh medium.rip && file medium.rip | |