2024-07-05 20:55:23 +02:00
|
|
|
name: Release
|
|
|
|
|
2024-07-05 21:09:58 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
2024-07-05 20:55:23 +02:00
|
|
|
jobs:
|
|
|
|
release:
|
2024-07-05 21:42:38 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2024-07-05 20:55:23 +02:00
|
|
|
steps:
|
2024-07-05 21:35:51 +02:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
2024-07-05 21:33:08 +02:00
|
|
|
uses: actions/setup-python@v5
|
2024-07-05 20:55:23 +02:00
|
|
|
with:
|
2024-07-05 21:35:51 +02:00
|
|
|
python-version: '3.9.19'
|
2024-07-05 20:55:23 +02:00
|
|
|
- name: Install dependencies
|
2024-07-05 21:04:23 +02:00
|
|
|
run: |
|
2024-07-05 20:55:23 +02:00
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install -r ./requirements.txt -t ./lib
|
|
|
|
mkdir uploads
|
2024-07-05 20:57:28 +02:00
|
|
|
zip -r uploads/Flow.Launcher.Plugin.OSRSSearch.zip . -x '*.git*'
|
2024-07-05 20:55:23 +02:00
|
|
|
- name: Create release
|
|
|
|
uses: actions/forgejo-release@v1
|
|
|
|
with:
|
2024-07-05 21:04:23 +02:00
|
|
|
direction: upload
|
|
|
|
url: https://git.lrsb.nl
|
2024-07-05 20:55:23 +02:00
|
|
|
release-dir: uploads
|
|
|
|
token: ${{ secrets.ACCESS_TOKEN }}
|
|
|
|
|