forked from 3liz/lizmap-web-client
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 889 Bytes
/
release.yml
File metadata and controls
38 lines (30 loc) · 889 Bytes
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
name: 🚀 Release
on:
push:
tags:
- '*'
jobs:
packaging:
runs-on: ubuntu-latest
if: github.repository == '3liz/lizmap-web-client'
steps:
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
ref: versions
fetch-depth: 0
token: ${{ secrets.BOT_HUB_TOKEN }}
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Add the version
run: ./add_version.py ${{ env.RELEASE_VERSION }}
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Publish ${{ env.RELEASE_VERSION }}"
commit_user_name: ${{ secrets.BOT_NAME }}
commit_user_email: ${{ secrets.BOT_MAIL }}
commit_author: ${{ secrets.BOT_NAME }}