flag #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
- name: Install dependencies and build Next.js app | |
run: | | |
cd seanime-web/ | |
npm install | |
npm run build | |
- name: Archive web folder | |
uses: actions/upload-artifact@v2 | |
with: | |
name: web | |
path: seanime-web/out | |
create-release-draft: | |
runs-on: ubuntu-latest | |
needs: build-webapp | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- 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 | |
# 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.22 | |
- 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 }} |