Skip to content

Merge pull request #44 from vst/vst/improve-dev-test-build #5

Merge pull request #44 from vst/vst/improve-dev-test-build

Merge pull request #44 from vst/vst/improve-dev-test-build #5

Workflow file for this run

name: "Release"
on:
push:
branches:
- "main"
permissions:
contents: "write"
pull-requests: "write"
jobs:
release-please:
runs-on: "ubuntu-latest"
steps:
- id: "release"
name: "Release"
uses: "google-github-actions/release-please-action@v4"
## TODO: Enable statically built executable as release artifact.
##
## See https://github.com/vst/postmap/issues/35
# - name: "Checkout Codebase"
# if: "${{ steps.release.outputs.release_created }}"
# uses: "actions/checkout@v4"
# with:
# fetch-depth: 0
# - name: "Install nix"
# if: "${{ steps.release.outputs.release_created }}"
# uses: "cachix/install-nix-action@v27"
# with:
# nix_path: "nixpkgs=channel:nixos-23.11"
# extra_nix_config: "system-features = benchmark, big-parallel, nixos-test, uid-range, kvm"
# - name: "Use magic Nix cache"
# if: "${{ steps.release.outputs.release_created }}"
# uses: "DeterminateSystems/magic-nix-cache-action@v6"
# - name: "Build Application"
# if: "${{ steps.release.outputs.release_created }}"
# run: |
# nix-shell --run "bash build-static.sh"
# - name: "Upload Release Artifact"
# if: "${{ steps.release.outputs.release_created }}"
# env:
# GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
# run: |
# gh release upload "${{ steps.release.outputs.tag_name }}" /tmp/postmap-static-linux-x86_64