Actualiser .gitea/workflows/build-and-release.yml

This commit is contained in:
2024-12-03 16:20:26 +01:00
parent 1a58e61d36
commit 5b9d8920de

View File

@@ -13,24 +13,34 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v3
env:
GITEA_TOKEN: ${{ secrets.TOKEN }}
- name: Set up Python
uses: actions/setup-python@v4
env:
GITEA_TOKEN: ${{ secrets.TOKEN }}
with:
python-version: 3.9
- name: Install Dependencies
env:
GITEA_TOKEN: ${{ secrets.TOKEN }}
run: |
python -m pip install --upgrade pip
pip install maubot
- name: Build Plugin
env:
GITEA_TOKEN: ${{ secrets.TOKEN }}
run: |
mbc build .
env:
MB_PLUGIN_DIR: ${{ github.workspace }}
- name: Upload Build Artifact
env:
GITEA_TOKEN: ${{ secrets.TOKEN }}
uses: actions/upload-artifact@v4
with:
name: plugin
@@ -54,6 +64,8 @@ jobs:
prerelease: false
- name: Upload Release Asset
env:
GITEA_TOKEN: ${{ secrets.TOKEN }}
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}