Skip to content

ci: add GH_TOKEN

ci: add GH_TOKEN #43

Workflow file for this run

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/')
env:
GH_TOKEN: ${{ github.token }}
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