Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
- Use Ubuntu 24.04
- Update build dependencies
- Update action version
- Mark as latest release
- Create announcement
  • Loading branch information
hsbasu committed Oct 25, 2024
1 parent f914e90 commit bcc13c1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/publish-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ jobs:
# This workflow contains a single job called "build-and-release"
build-and-release:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
language: [ 'python' ]

permissions:
contents: write
packages: write
discussions: write

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -37,7 +38,8 @@ jobs:
run: |
sudo apt-get update -qq
sudo apt install -y build-essential debhelper devscripts dh-python \
gettext python3 python3-all python3-gi python3-setuptools python3-sphinx
desktop-file-utils gettext libglib2.0-bin libgtk-4-bin meson python3 \
pybuild-plugin-pyproject python3-sphinx python3-sphinx-argparse
- name: build-deb
run: |
Expand All @@ -50,15 +52,16 @@ jobs:
run: echo "latesttag=$(git describe --tags --abbrev=0 || git rev-list --max-parents=0 ${{github.ref}})" >> $GITHUB_OUTPUT

- name: Create Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.gettag.outputs.latesttag }}
generate_release_notes: true
make_latest: true
draft: false
prerelease: false
discussion_category_name: Announcements
files: |
../*.deb
../*.changes
env:
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit bcc13c1

Please sign in to comment.