-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08957fd
commit 4b93425
Showing
2 changed files
with
64 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,69 +4,70 @@ on: | |
push: | ||
tags: | ||
- "v*" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish-release: | ||
name: Publish Release | ||
runs-on: macos-11 | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.10.8 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.10.8 | ||
|
||
- name: Set up Poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: 1.1.6 | ||
- name: Set up Poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: 1.4.2 | ||
|
||
- name: Install python dependencies | ||
run: poetry install | ||
- name: Install python dependencies | ||
run: poetry install | ||
|
||
- uses: pre-commit/[email protected] | ||
name: "Linters and formatters check" | ||
with: | ||
extra_args: --all-files --show-diff-on-failure | ||
- uses: pre-commit/[email protected] | ||
name: "Linters and formatters check" | ||
with: | ||
extra_args: --all-files --show-diff-on-failure | ||
|
||
- name: Build TinyBar.app | ||
run: PYTHONPATH="." poetry run python3 setup.py py2app | ||
- name: Build TinyBar.app | ||
run: PYTHONPATH="." poetry run python3 setup.py py2app | ||
|
||
- name: Zip executable | ||
run: zip -vr TinyBar.zip dist/TinyBar.app -x "*.DS_Store" | ||
- name: Zip executable | ||
run: zip -vr TinyBar.zip dist/TinyBar.app -x "*.DS_Store" | ||
|
||
- uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: false | ||
files: TinyBar.zip | ||
- uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: false | ||
files: TinyBar.zip | ||
|
||
update-website: | ||
name: Update Website | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Copy latest README | ||
run: | | ||
cp README.md index.md | ||
- name: Copy latest README | ||
run: | | ||
cp README.md index.md | ||
- name: Push latest index.md | ||
uses: dmnemec/copy_file_to_another_repo_action@main | ||
env: | ||
- name: Push latest index.md | ||
uses: dmnemec/copy_file_to_another_repo_action@main | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
source_file: 'index.md' | ||
destination_repo: 'aorumbayev/tinybar' | ||
destination_branch: 'gh-pages' | ||
user_email: '[email protected]' | ||
user_name: 'TinyBarBot' | ||
commit_message: '🤖 Updating website with latest content 📜' | ||
with: | ||
source_file: "index.md" | ||
destination_repo: "aorumbayev/tinybar" | ||
destination_branch: "gh-pages" | ||
user_email: "[email protected]" | ||
user_name: "TinyBarBot" | ||
commit_message: "🤖 Updating website with latest content 📜" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,30 +8,30 @@ jobs: | |
runs-on: macos-11 | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.10.8 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.10.8 | ||
|
||
- name: Set up Poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: 1.1.6 | ||
- name: Set up Poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: 1.4.2 | ||
|
||
- name: Install python dependencies | ||
run: poetry install | ||
- name: Install python dependencies | ||
run: poetry install | ||
|
||
- uses: pre-commit/[email protected] | ||
name: "Linters and formatters check" | ||
with: | ||
extra_args: --all-files --show-diff-on-failure | ||
- uses: pre-commit/[email protected] | ||
name: "Linters and formatters check" | ||
with: | ||
extra_args: --all-files --show-diff-on-failure | ||
|
||
- name: Build TinyBar.app | ||
run: PYTHONPATH="." poetry run python3 setup.py py2app | ||
- name: Build TinyBar.app | ||
run: PYTHONPATH="." poetry run python3 setup.py py2app |