chore: Remove obsolete links (#286) #232
This file contains 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
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: write | |
name: release-please | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
# skip releases on forks | |
outputs: | |
tag_name: ${{ steps.release.outputs.tag_name }} | |
release_created: ${{ steps.release.outputs.release_created }} | |
if: github.repository == 'kurtosis-tech/kardinal' | |
steps: | |
- name: Run Release Please | |
id: release | |
uses: googleapis/release-please-action@v3 | |
with: | |
token: ${{ secrets.RELEASE_PLEASE_TOKEN }} | |
release-type: simple | |
package-name: kardinal | |
bump-minor-pre-major: true | |
bump-patch-for-minor-pre-major: true | |
include-v-in-tag: false | |
build-and-publish-clis: | |
needs: release-please | |
runs-on: ubuntu-22.04 | |
if: ${{ needs.release-please.outputs.release_created }} | |
strategy: | |
matrix: | |
os: [linux, darwin, windows] | |
arch: [amd64, arm64] | |
steps: | |
- name: git checkout | |
uses: actions/checkout@v3 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: Magic cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Upload Release CLI Artifact | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
result=$(nix build ./#cross-compiled-cli.x86_64-linux.${{ matrix.os }}.${{ matrix.arch }} --no-link --print-out-paths) | |
path=$(find $result -name 'kardinal.cli*' -type f | head -n 1) | |
if [[ "${{ matrix.os }}" == "windows" ]]; then | |
binout="/tmp/kardinal-${{ matrix.os }}-${{ matrix.arch }}.exe" | |
else | |
binout="/tmp/kardinal-${{ matrix.os }}-${{ matrix.arch }}" | |
fi | |
ls -lah $path | |
ln -s $path $binout | |
ls -lah $binout | |
gh release upload ${{ needs.release-please.outputs.tag_name }} $binout --clobber |