name: Build and upload a binary on tag push on: push: tags: - 'v*' jobs: build-release: runs-on: docker steps: - name: Checkout uses: actions/checkout@v3 - name: Setup toolchian uses: https://github.com/dtolnay/rust-toolchain@stable - name: Build run: | cargo build --release mkdir release cp target/release/iss_locator release/iss_locator chmod +x release/iss_locator xz --keep -9 release/iss_locator shasum -a 256 release/iss_locator > release/iss_locator.sha256 shasum -a 256 release/iss_locator.xz > release/iss_locator.xz.sha256 - name: Upload release uses: actions/forgejo-release@v1 with: direction: upload url: https://git.technoduck.me token: ${{secrets.app_token}} release-dir: release verbose: true