Skip to content

Feature/ci workflow

Feature/ci workflow #3

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
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}