Skip to content
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
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ko_fi: cssnr
16 changes: 15 additions & 1 deletion .github/ISSUE_TEMPLATE/0-bug.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
name: "⚠️ Report an Issue"
description: "Something Not Working Right? Please let us know..."
description: "Please let us know if something is not right..."
labels: ["bug"]
assignees:
- smashedr

body:
- type: markdown
attributes:
value: |
All issues will be responded too.

- type: input
id: website
validations:
required: false
attributes:
label: Site Link
description: Please provide a link to the site you are having issues on if possible.
placeholder: https://example.com/

- type: textarea
id: description
validations:
Expand Down
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/1-feature.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "💡 Request a Feature"
description: "Request new features or enhancements"
labels: ["enhancement"]
assignees:
- smashedr

body:
- type: markdown
attributes:
value: |
All requests will be responded too.

- type: textarea
id: description
validations:
required: true
attributes:
label: Details
description: Please describe the feature or enhancement you are requesting and what it should do.
placeholder: Provide as many details as you can...

- type: markdown
attributes:
value: |
Thank you for taking the time to make this report!
22 changes: 9 additions & 13 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
blank_issues_enabled: true
contact_links:
- name: '💡 Request a Feature'
about: Request a New Feature or Enhancement in the Discussions.
url: https://github.com/cssnr/aviation-tools/discussions/new?category=feature-requests
- name: "❔ Start a Discussion"
about: Ask a general question or start a discussion
url: https://github.com/cssnr/aviation-tools/discussions

- name: '❔ Ask a Question'
about: Ask a General Question or start a Discussions.
url: https://github.com/cssnr/aviation-tools/discussions/new?category=q-a
- name: "💬 Join Discord"
about: Chat with us about anything
url: https://discord.gg/wXy6m2X8wY

- name: '💬 Join Discord'
about: Chat with us about Issues, Features, Questions and More.
url: https://discord.gg/wXy6m2X8wY

- name: '📝 Submit Feedback'
about: Send General Feedback.
url: https://cssnr.github.io/feedback/?app=Aviation%20Tools
- name: "🌐 View Developer Site"
about: Visit the developers website
url: https://cssnr.github.io/
6 changes: 6 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
paths:
.github/workflows/**/*.{yml,yaml}:
ignore:
- '"inputs" section is alias node but mapping node is expected'
- '"paths" section must be sequence node but got alias node with "" tag'
- '"paths-ignore" section must be sequence node but got alias node with "" tag'
147 changes: 99 additions & 48 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,55 +11,69 @@ env:
CHROME_ID: cjjhackeogffajjndfhemgniokonimin
MOZILLA_ID: aviation-tools@cssnr.com
MOZILLA_CHANNEL: unlisted
UPDATE_JSON: update.json

jobs:
build:
name: "Build"
runs-on: ubuntu-latest
timeout-minutes: 5

#outputs:
# package_name: ${{ steps.manifest.outputs.package_name }}
permissions:
contents: write

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: "Setup Node"
uses: actions/setup-node@v4
- name: "Setup Node 24"
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24

- name: "Install"
run: |
npm ci

- name: "Update Manifest Version"
if: ${{ github.event_name == 'release' }}
uses: cssnr/update-json-value-action@v1

#- name: "Parse Manifest"
# id: manifest
# run: |-
# export name="$(jq '.name' < manifest.json | tr -d '"' | tr '[:upper:]' '[:lower:]')"
# echo "package_name=${name// /_}" >> "$GITHUB_OUTPUT"
uses: cssnr/update-json-value-action@v2

- name: "Build All"
run: |-
npm install
- name: "Build"
run: |
npm run build

- name: "Upload to Actions"
uses: actions/upload-artifact@v4
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: actions/upload-artifact@v6
with:
name: artifacts
path: web-ext-artifacts/

- name: "Upload to Release"
if: ${{ github.event_name == 'release' }}
uses: svenstaro/upload-release-action@v2
uses: cssnr/upload-release-action@v1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: web-ext-artifacts/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
globs: web-ext-artifacts/*

- name: "Update Release Notes Action"
if: ${{ github.event_name == 'release' }}
continue-on-error: true
uses: smashedr/update-release-notes-action@master
with:
type: generic

- name: "Package Changelog Action"
if: ${{ github.event_name == 'release' }}
continue-on-error: true
uses: cssnr/package-changelog-action@v2

- name: "Send Failure Notification"
if: ${{ failure() && github.event_name == 'release' }}
uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

publish-mozilla:
name: "Publish Mozilla"
Expand All @@ -68,9 +82,12 @@ jobs:
needs: [build]
if: ${{ github.event_name == 'release' }}

permissions:
contents: write

steps:
- name: "Download Artifacts"
uses: actions/download-artifact@v4
uses: actions/download-artifact@v6
with:
name: artifacts

Expand All @@ -82,9 +99,13 @@ jobs:
name: "amo-metadata.json"
json: '{"version": {"release_notes": {"en-US": "${{ env.NOTES }}"}}}'

- name: "Debug Artifact"
run: |
ls -lAh .

- name: "Sign Mozilla Addon"
run: |-
unzip *firefox* -d src
run: |
unzip ./*firefox* -d src
npx web-ext sign --api-key="${{ secrets.FIREFOX_API_KEY }}" \
--api-secret="${{ secrets.FIREFOX_API_SECRET }}" \
--source-dir="${{ env.SRC_DIR }}" \
Expand All @@ -93,25 +114,23 @@ jobs:

- name: "Rename Signed Artifact"
working-directory: web-ext-artifacts
run: |-
ls -l .
mv *.xpi "${{ env.PACKAGE_NAME }}-firefox.xpi"
ls -l .
run: |
ls -lAh .
mv ./*.xpi "${{ env.PACKAGE_NAME }}-firefox.xpi"
file "${{ env.PACKAGE_NAME }}-firefox.xpi"

- name: "Upload to Actions"
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: signed
path: web-ext-artifacts/

- name: "Upload to Release"
uses: svenstaro/upload-release-action@v2
if: ${{ github.event_name == 'release' }}
uses: cssnr/upload-release-action@v1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: web-ext-artifacts/*
tag: ${{ github.ref }}
globs: web-ext-artifacts/*
overwrite: true
file_glob: true

update-mozilla:
name: "Update Mozilla"
Expand All @@ -120,9 +139,12 @@ jobs:
needs: [publish-mozilla]
if: ${{ github.event_name == 'release' }}

permissions:
contents: write

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: "Mozilla Addon Update"
uses: cssnr/mozilla-addon-update-action@v1
Expand All @@ -131,18 +153,47 @@ jobs:
addon_id: ${{ env.MOZILLA_ID }}
version: ${{ github.ref_name }}

- name: "Commit files"
- name: "Debug ${{ env.UPDATE_JSON }}"
continue-on-error: true
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "Update update.json"

- name: "Push changes"
uses: ad-m/github-push-action@master
git status
echo "::group::cat ${{ env.UPDATE_JSON }}"
cat -n "${{ env.UPDATE_JSON }}"
echo "::endgroup::"

#- name: "Commit files"
# run: |
# git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
# git config --local user.name "github-actions[bot]"
# git commit -a -m "Update ${{ env.UPDATE_JSON }}"
#
#- name: "Push changes"
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: master

#- name: "Create App Token"
# if: ${{ !github.event.release.prerelease }}
# id: app
# uses: actions/create-github-app-token@v2
# with:
# app-id: 146360
# private-key: ${{ secrets.APP_PRIVATE_KEY }}
# owner: ${{ github.repository_owner }}
#
- name: "Commit Action"
id: commit
uses: suzuki-shunsuke/commit-action@f28421acc277a6d6a9c1f94ea449076ad77dba67 # v0.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master
#
#branch: ${{ github.head_ref }}
#repository: ${{ github.repository }}
#files: ${{ env.UPDATE_JSON }}
commit_message: "Bump ${{ env.UPDATE_JSON }} to ${{ github.ref_name }}"
#github_token: ${{ steps.app.outputs.token }}
app_id: 146360
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}

# publish-chrome:
# name: 'Publish Chrome'
# runs-on: ubuntu-latest
Expand Down Expand Up @@ -174,7 +225,7 @@ jobs:
# --client-id ${{ secrets.CI_GOOGLE_CLIENT_ID }} \\
# --client-secret ${{ secrets.CI_GOOGLE_CLIENT_SECRET }} \\
# --refresh-token ${{ secrets.CI_GOOGLE_REFRESH_TOKEN }}

#
# - name: 'Rename Signed Artifact'
# working-directory: web-ext-artifacts
# run: |-
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/draft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Draft Release"

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

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
draft:
name: "Draft Release"
runs-on: ubuntu-latest
timeout-minutes: 5

permissions:
contents: write

steps:
- name: "Checkout"
uses: actions/checkout@v6

- name: "Draft Release Action"
id: draft
uses: cssnr/draft-release-action@master
with:
semver: patch
prerelease: false

- name: "Process Release Draft URL"
run: |
echo "url: ${{ steps.draft.outputs.url }}"
Loading
Loading