-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (42 loc) · 1.16 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Release
on:
release:
types:
- released
branches: main
jobs:
build:
runs-on: ubuntu-latest
name: Build & Release
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore nuget packages
run: dotnet restore Authelia-Auth/Authelia-Auth.csproj
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install JPRM
run: python -m pip install jprm
- name: Run JPRM
run: python build_plugin.py --version=${GITHUB_REF#refs/*/}
- name: Update release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./artifacts/authelia-authentication*.zip
tag: ${{ github.ref }}
file_glob: true
- name: Update manifest
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
commit_message: Update repo manifest
file_pattern: manifest.json