Merge pull request #47 from FrankYang0529/fix-ci #42
Workflow file for this run
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
name: build | |
on: | |
push: | |
branches: | |
- harvester-dev | |
tags: | |
- v* | |
pull_request: | |
jobs: | |
build: | |
name: Build images | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# Build binaries and SHA files | |
- name: Run make ci | |
run: make ci | |
- name: Release | |
if: startsWith(github.ref, 'refs/tags/') | |
run: | | |
gh release upload ${{ github.ref_name }} dist/artifacts/rancherd-amd64 | |
gh release upload ${{ github.ref_name }} dist/artifacts/rancherd-arm64 | |
gh release upload ${{ github.ref_name }} dist/artifacts/sha256sum-amd64.txt | |
gh release upload ${{ github.ref_name }} dist/artifacts/sha256sum-arm64.txt |