-
Notifications
You must be signed in to change notification settings - Fork 0
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
278ab50
commit 95cf951
Showing
6 changed files
with
162 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.github export-ignore | ||
.gitattributes export-ignore |
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
name: "bump-version" | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
bump_type: | ||
description: "Bump type" | ||
default: "patch" | ||
required: true | ||
type: choice | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
|
||
env: | ||
GITHUB_ACCESS_TOKEN: ${{ secrets.TRIMUI_ACCESS_TOKEN }} | ||
|
||
jobs: | ||
bump-version: | ||
name: bump-version | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4.1.4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ env.GITHUB_ACCESS_TOKEN }} | ||
|
||
- name: Get Latest Tag | ||
id: latest-tag | ||
run: | | ||
echo GIT_LATEST_TAG="$(git describe --tags "$(git rev-list --tags --max-count=1)")" >>"$GITHUB_OUTPUT" | ||
- name: Compute Next Tag | ||
id: next-tag | ||
uses: docker://ghcr.io/dokku/semver-generator:latest | ||
with: | ||
bump: ${{ github.event.inputs.bump_type }} | ||
input: ${{ steps.latest-tag.outputs.GIT_LATEST_TAG }} | ||
|
||
- name: Create and Push Tag | ||
run: | | ||
git config --local user.email "action@github.com" | ||
git config --local user.name "GitHub Action" | ||
git tag "$GIT_NEXT_TAG" | ||
git push origin "$GIT_NEXT_TAG" | ||
env: | ||
GIT_NEXT_TAG: ${{ steps.next-tag.outputs.version }} |
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
name: "ci" | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
pull_request: | ||
branches: | ||
- "*" | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
attestations: write | ||
id-token: write | ||
contents: write | ||
|
||
jobs: | ||
ci: | ||
name: ci | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get Pak Name | ||
id: pak-name | ||
run: | | ||
echo "PAK_NAME=$(jq -r .label config.json)" >> $GITHUB_OUTPUT | ||
- name: Create Release zip | ||
run: | | ||
mkdir -p dist | ||
git archive --format=zip --output "dist/${{ steps.pak-name.outputs.PAK_NAME }}.pak.zip" HEAD | ||
ls -lah dist | ||
- name: Attest Build Provenance | ||
uses: actions/attest-build-provenance@v2.1.0 | ||
with: | ||
subject-path: "dist/${{ steps.pak-name.outputs.PAK_NAME }}.pak.zip" | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist | ||
path: dist/* |
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
name: "tagged-release" | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
permissions: | ||
attestations: write | ||
id-token: write | ||
contents: write | ||
|
||
jobs: | ||
tagged-release: | ||
name: tagged-release | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get Pak Name | ||
id: pak-name | ||
run: | | ||
echo "PAK_NAME=$(jq -r .label config.json)" >> $GITHUB_OUTPUT | ||
- name: Create Release zip | ||
run: | | ||
mkdir -p dist | ||
git archive --format=zip --output "dist/${{ steps.pak-name.outputs.PAK_NAME }}.pak.zip" HEAD | ||
ls -lah dist | ||
- name: Attest Build Provenance | ||
uses: actions/attest-build-provenance@v2.1.0 | ||
with: | ||
subject-path: "dist/${{ steps.pak-name.outputs.PAK_NAME }}.pak.zip" | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist | ||
path: dist/* | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: dist/* | ||
generate_release_notes: true | ||
make_latest: "true" |
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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"label": "FN Editor", | ||
"launch": "launch.sh", | ||
"description": "Function Key Editor" | ||
} |