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

Create actual nightly release when pushing to master #17

Merged
merged 1 commit into from
Jun 16, 2023
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
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Make polonium.kwinscript

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/publish_kwinscript.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish polonium.kwinscript

on:
push:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write

steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: sudo apt-get install -y kpackagetool5 npm node-typescript

- name: Build with make
run: |
make build
sha256sum polonium.kwinscript > polonium.kwinscript.sha256sum

- name: Create release
run: |
gh release delete nightly --yes || true
gh release create nightly \
--prerelease \
--title "Development build" \
--notes "Get the latest version with all the new bugs and features." \
polonium.kwinscript*
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.kwinscript*
pkg/
*.kate-swp
src/**/*.js
Expand Down
2 changes: 1 addition & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Installation

Do one of the following -
* Go to [GitHub Actions](https://github.com/zeroxoneafour/polonium/actions/workflows/kwinscript.yml) and download the artifact from the latest build, then install it in KWin Scripts in the settings menu. This will give you the master build of Polonium
* Go to [GitHub](https://github.com/zeroxoneafour/polonium/releases/) and download the `polonium.kwinscript` asset from a release of your choice, then install it in KWin Scripts in the settings menu
* Go to the [KWin Store](https://store.kde.org/p/2042756) and download the latest `polonium.kwinscript`, then install it in KWin Scripts
* Go to KWin Scripts settings panel and Get New Scripts, then search for and select Polonium

Expand Down