Skip to content

ci/cd: only run upload on main branch #241

ci/cd: only run upload on main branch

ci/cd: only run upload on main branch #241

Workflow file for this run

name: Build and test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v22
- run: nix flake check
- run: nix build
- name: Upload Pushup executable
uses: actions/upload-artifact@v3
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4

Check failure on line 18 in .github/workflows/go.yml

View workflow run for this annotation

GitHub Actions / Build and test

Invalid workflow file

The workflow is not valid. .github/workflows/go.yml (Line: 18, Col: 7): 'uses' is already defined
with:
name: pushup
path: result/bin/pushup