Skip to content

minor fix

minor fix #62

Workflow file for this run

name: Release Draft
on:
workflow_dispatch:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build-webapp:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
# Web
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
# outputs in "seanime-web/out/"
- name: Install dependencies and build Next.js app
run: |
cd seanime-web/
npm install
npm run build
# Archive the output to be used in the next job
- name: Archive web folder
uses: actions/upload-artifact@v2
with:
name: web
path: seanime-web/out # output dir of the build
create-release-draft:
runs-on: macos-14
needs: build-webapp
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Ownership exception
run: git config --global --add safe.directory /__w/seanime/seanime
- name: Fetch all tags
run: git fetch --force --tags
# Download the web/ folder artifact
- name: Download web folder artifact
uses: actions/download-artifact@v2
with:
name: web
path: web
- name: Install C dependencies
run: |
brew install filosottile/musl-cross/musl-cross
brew install llvm
brew install mingw-w64
# Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Generate Release Notes
run: python ./.github/scripts/generate-release-notes.py
# Go
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.23
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean --release-notes whats-new.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}