Attempt at forgejo actions
This commit is contained in:
parent
543ad09f69
commit
a15bde43b1
1 changed files with 29 additions and 0 deletions
29
.forgejo/workflows/release.yml
Normal file
29
.forgejo/workflows/release.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
name: Release
|
||||||
|
|
||||||
|
on: [tag]
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
python_ver: 3.8
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Python ${{ env.python_ver }}
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: ${{ env.python_ver }}
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -r ./requirements.txt -t ./lib
|
||||||
|
mkdir uploads
|
||||||
|
zip -r uploads/Flow.Launcher.Plugin.OSRSSearch-${GITHUB_REF##*/}.zip . -x '*.git*'
|
||||||
|
- name: Create release
|
||||||
|
uses: actions/forgejo-release@v1
|
||||||
|
with:
|
||||||
|
direction: upload
|
||||||
|
url: https://git.lrsb.nl
|
||||||
|
release-dir: uploads
|
||||||
|
token: ${{ secrets.ACCESS_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue