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:20:12 +02:00
|
|
|
runs-on: docker
|
2024-07-05 20:55:23 +02:00
|
|
|
env:
|
2024-07-05 21:30:47 +02:00
|
|
|
python_ver: 3.8.18
|
2024-07-05 20:55:23 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python ${{ env.python_ver }}
|
2024-07-05 21:27:30 +02:00
|
|
|
uses: actions/setup-python@v4
|
2024-07-05 20:55:23 +02:00
|
|
|
with:
|
|
|
|
python-version: ${{ env.python_ver }}
|
|
|
|
- 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 }}
|
|
|
|
|