-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into linux_neptune
- Loading branch information
Showing
60 changed files
with
1,336 additions
and
837 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,20 @@ | ||
changelog: | ||
categories: | ||
- title: '🚀 Features' | ||
labels: | ||
- 'feature' | ||
- 'enhancement' | ||
- title: '🐛 Bug Fixes' | ||
labels: | ||
- 'fix' | ||
- 'bugfix' | ||
- 'bug' | ||
- title: '📚 Documentation' | ||
label: 'documentation' | ||
- title: '🔒 Security' | ||
label: 'security' | ||
- title: '🧰 GitHub Actions' | ||
label: 'github actions' | ||
exclude: | ||
labels: | ||
- 'skip-changelog' |
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
name: LinUtil Release | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
workflow_dispatch: | ||
|
||
permissions: | ||
|
@@ -55,12 +53,6 @@ jobs: | |
mv build/x86_64-unknown-linux-musl/release/linutil build/linutil | ||
mv build/aarch64-unknown-linux-musl/release/linutil build/linutil-aarch64 | ||
- name: Pull latest changes | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Actions" | ||
git pull origin main | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Commit Linutil | ||
|
@@ -75,28 +67,18 @@ jobs: | |
echo "version=$version" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: Generate Release Notes | ||
id: generate_notes | ||
uses: release-drafter/release-drafter@v6 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
config-name: release-drafter.yml | ||
version: ${{ env.version }} | ||
|
||
- name: Create and Upload Release | ||
id: create_release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: ${{ env.version }} | ||
name: Pre-Release ${{ env.version }} | ||
body: | | ||
${{ steps.generate_notes.outputs.body }} | ||
![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/${{ env.version }}/linutil) | ||
![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/${{ env.version }}/linutil-aarch64) | ||
append_body: false | ||
append_body: true | ||
generate_release_notes: true | ||
files: | | ||
./build/linutil | ||
./build/linutil-aarch64 | ||
|
@@ -106,3 +88,23 @@ jobs: | |
env: | ||
version: ${{ env.version }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install vhs | ||
run: | | ||
wget 'https://github.com/charmbracelet/vhs/releases/download/v0.8.0/vhs_0.8.0_amd64.deb' | ||
sudo apt install -y ffmpeg | ||
sudo snap install ttyd --classic | ||
sudo dpkg -i 'vhs_0.8.0_amd64.deb' | ||
- name: Build the preview | ||
run: | | ||
export PATH="$(pwd)/build:$PATH" | ||
vhs docs/assets/preview.tape -o docs/assets/preview.gif | ||
- name: Upload the preview | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Preview for ${{ env.version }} | ||
file_pattern: "docs/assets/preview.gif" | ||
add_options: "--force" | ||
if: success() |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.