Skip to content

sqlite switch

sqlite switch #24

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
outputs:
artifacts: ${{ steps.releaser.outputs.artifacts }}
runs-on: ubuntu-latest
steps:
- if: ${{ github.event_name == 'pull_request' }}
run: echo "flags=--snapshot" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Run GoReleaser
id: releaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release ${{ env.flags }}
env:
GITHUB_TOKEN: {{ secrets.GITHUB_TOKEN }}

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

View workflow run for this annotation

GitHub Actions / Go

Invalid workflow file

The workflow is not valid. .github/workflows/go.yml (Line: 40, Col: 23): A mapping was not expected
- name: Upload
if: ${{ github.event_name == 'pull_request' }}
uses: actions/upload-artifact@v4
with:
path: ./dist/*
if-no-files-found: warn