Skip to content

Added github workflow to create PR artifacts and release on tag #1

Added github workflow to create PR artifacts and release on tag

Added github workflow to create PR artifacts and release on tag #1

Workflow file for this run

name: CI
on:
push:
tags:
- "v*"
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
container:
image: fozztexx/defoogi:1.4.2
steps:
- uses: actions/checkout@v4
- name: Build release files
run: make release
# PR case: normal artifact upload
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/**
tagged-release:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: dist
- name: Create Github Release
uses: softprops/action-gh-release@v1

Check failure on line 45 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 45
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/**
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}