Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate release #627

Merged
merged 5 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: pre-commit
on:
pull_request:
push:
branches: [main]
branches: [master]

jobs:
pre-commit:
Expand All @@ -14,3 +14,4 @@ jobs:
with:
python-version: 3.11.x
- uses: pre-commit/[email protected]
- uses: webiny/[email protected]
44 changes: 44 additions & 0 deletions .github/workflows/release-appimage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Create latest release

on:
push:
branches:
- 'master'

jobs:
latest-release:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

- name: Build
uses: docker://ghcr.io/kdab/kdesrc-build:latest

- name: Delete latest release
run: |
gh release delete continuous --cleanup-tag || true
env:
GH_TOKEN: ${{ github.token }}

- name: Create latest release
uses: ncipollo/release-action@v1
with:
name: "continuous"
tag: "continuous"
prerelease: true
body: "The newest version directly from the master branch. THIS IS BLEEDING ENDGE AND WILL MOST LIKELY CONTAIN UNKOWN BUGS."
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: |
${{ github.workspace }}/hotspot-debuginfo-*
${{ github.workspace }}/*.AppImage

- name: Create release PR
uses: google-github-actions/release-please-action@v4
with:
token: ${{ github.token }}
release-type: simple
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,10 @@ repos:
entry: mdl
language: ruby
files: \.(md|mdown|markdown)$
exclude: CHANGELOG.md
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.2.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: []