26 lines
662 B
YAML
26 lines
662 B
YAML
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
serve:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Pre-commit check
|
|
run: |
|
|
pip install pre-commit
|
|
pre-commit run --show-diff-on-failure --color=always --all-files
|
|
- name: Prepare files
|
|
run: |
|
|
mkdir -p /tmp/release
|
|
cp package.json /tmp/release/
|
|
cp micromail.py /tmp/release/
|
|
- name: Make release
|
|
uses: actions/forgejo-release@v2.6.0
|
|
with:
|
|
direction: upload
|
|
release-dir: /tmp/release
|
|
token: ${{ secrets.FORGEJO_TOKEN }}
|