Skip to content

Commit

Permalink
Prepare release: workflow is now only compatible with Alfred 5
Browse files Browse the repository at this point in the history
  • Loading branch information
artemy committed Aug 2, 2022
1 parent f4663cc commit 69b5e79
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: '*.alfredworkflow'
files: '*.alfred5workflow'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.idea
venv
*.alfredworkflow
*.alfred5workflow
htmlcov
.coverage
coverage.xml
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ALFRED_PACKAGE_FILES=./alfred/* .readme/images/screenshot.png
all: clean build

clean:
rm -fr out *.alfredworkflow
rm -fr out *.alfred5workflow

build:
zip -j -r $(ALFRED_FILE_NAME).alfredworkflow $(ALFRED_PACKAGE_FILES) $(NS_SCHEDULE_PY)
zip -j -r $(ALFRED_FILE_NAME).alfred5workflow $(ALFRED_PACKAGE_FILES) $(NS_SCHEDULE_PY)
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NS (Nederlandse Spoorwegen) Train schedule for Alfred
# NS (Nederlandse Spoorwegen) Train schedule for Alfred 5

![test & release](https://github.com/artemy/alfred-ns-schedule/workflows/test%20&%20release/badge.svg)
![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)
Expand All @@ -9,17 +9,19 @@ Alfred workflow for getting NS Train schedule.

## Getting started

⚠️ This workflow requires [Alfred 5](https://www.alfredapp.com/alfred-5-whats-new/).
Alfred 4 users can use [version 2.0](https://github.com/artemy/alfred-ns-schedule/releases/tag/v2.0) of the workflow.

### Prerequisites

Project requires Python 3.8+ to run, which is not included by default with macOS. You can install Python 3 using
this [guide](https://docs.python-guide.org/starting/install3/osx/).

⚠️ Make sure to get API key from https://apiportal.ns.nl/ and set it as workflow environment variable NS_APIKEY during
the installation.
⚠️ Make sure to get API key from https://apiportal.ns.nl/ and set it in a user configuration of the workflow.

### Installing

Download `NS_Schedule.alfredworkflow` file from the latest release
Download `NS_Schedule.alfred5workflow` file from the latest release
at [Releases](https://github.com/artemy/alfred-ns-schedule/releases) page and open it with Alfred.
Change the value of NS_APIKEY variable to the value you've received from NS at the _Prerequisites_ step.

Expand Down
2 changes: 1 addition & 1 deletion alfred/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Be sure to [get an API Key](https://apiportal.ns.nl/) and set it in the user con
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>2.1</string>
<string>3.0</string>
<key>webaddress</key>
<string>https://github.com/artemy/alfred-ns-schedule</string>
</dict>
Expand Down

0 comments on commit 69b5e79

Please sign in to comment.