Skip to content

Backup fxhash articles #2

Backup fxhash articles

Backup fxhash articles #2

Workflow file for this run

name: Backup fxhash articles
on:
workflow_dispatch:
inputs:
username:
description: "fxhash username (e.g. aquaponics.kana)"
required: true
type: string
lang:
description: "Site UI language"
required: false
default: "auto"
type: choice
options:
- auto
- zh-Hant
- en
permissions:
contents: read
jobs:
backup:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run backup
run: |
mkdir -p out
python fxhash_backup.py "${{ inputs.username }}" --lang "${{ inputs.lang }}" --output-dir out
- name: Upload zip
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.username }}-fxhash
path: out/*.zip
if-no-files-found: error
retention-days: 30