-
Notifications
You must be signed in to change notification settings - Fork 71
44 lines (41 loc) · 1.34 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
name: Release
on: workflow_dispatch
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y debhelper-compat dh-sequence-python3 python3-all python3-setuptools help2man devscripts gettext lsb-release xmlstarlet git
- uses: actions/checkout@v3
with:
ref: master
- name: Prepare release files
id: tag
run: |
./scripts/create-release.sh
env:
DEBFULLNAME: ${{ secrets.DEBFULLNAME }}
DEBEMAIL: ${{ secrets.DEBEMAIL }}
- name: Build deb package
run: |
dpkg-buildpackage -us -uc
- name: Commit changes
run: |
git config --global user.name 'Wouter Wijsman'
git config --global user.email '[email protected]'
git add pyproject.toml data/io.github.sharkwouter.Minigalaxy.metainfo.xml debian/changelog minigalaxy/version.py
git commit -m "Add new release"
git push
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag.outputs.VERSION }}
name: Minigalaxy version ${{ steps.tag.outputs.VERSION }}
body_path: release.md
prerelease: true
files: |
../minigalaxy_*.deb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}