Skip to content

Move to latest libgit2 with PR #6706 merged #22

Move to latest libgit2 with PR #6706 merged

Move to latest libgit2 with PR #6706 merged #22

Workflow file for this run

name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install nix
uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Use cachix
uses: cachix/cachix-action@v12
with:
name: gg
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
extraPullNames: nix-community
- name: Build binary
run: nix build --show-trace
- name: Upload binary as artifact
uses: actions/upload-artifact@v3
with:
name: gg
path: result/bin/gg
- name: Delete existing release
uses: dev-drprasad/[email protected]
with:
tag_name: nightly
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
uses: ncipollo/[email protected]
if: github.ref == 'refs/heads/master'
with:
tag: nightly
commit: ${{ github.sha }}
name: Latest binary build
body: "Nightly build of the latest code in master. Download the static binary [gg](https://github.com/u-quark/gg/releases/download/nightly/gg) and `chmod +x` it."
prerelease: true
artifacts: result/bin/gg
allowUpdates: true
artifactErrorsFailBuild: true
removeArtifacts: true