-
Notifications
You must be signed in to change notification settings - Fork 9
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
0 parents
commit 406c432
Showing
13 changed files
with
1,762 additions
and
0 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,55 @@ | ||
name: Build sb binary | ||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- 'sb.py' | ||
- 'requirements.txt' | ||
tags: | ||
- '*' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: self-hosted | ||
steps: | ||
- name: Check-out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup venv | ||
run: python3.10 -m venv venv | ||
|
||
- name: Install Dependencies | ||
run: ./venv/bin/pip install -r requirements.txt | ||
|
||
- name: List Pip modules | ||
run: ./venv/bin/pip list | ||
|
||
- name: Prepare script with version | ||
run: | | ||
echo "Building with version ${GITHUB_REF#refs/tags/}" | ||
sed "s/__version__ = \"0.0.0\"/__version__ = \"${GITHUB_REF#refs/tags/}\"/" sb.py > sb_with_version.py | ||
- name: Compile binary | ||
run: ./venv/bin/python -m nuitka sb_with_version.py --onefile -o sb && chmod +x sb | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: | | ||
sb | ||
- name: Run release workflow | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: gh workflow run release.yml -f release_tag=${{ github.ref }} | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
- uses: sarisia/actions-status-discord@v1 | ||
if: always() | ||
with: | ||
webhook: ${{ secrets.DISCORD_WEBHOOK }} |
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,26 @@ | ||
name: Update Release File | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release_tag: | ||
required: true | ||
|
||
jobs: | ||
update-release-file: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Write tag to release.txt | ||
run: echo "${{ inputs.release_tag }}" > release.txt | ||
|
||
- name: Commit changes | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
author_name: Continuous Integration | ||
author_email: username@users.noreply.github.com | ||
message: 'Update release.txt with the latest tag' | ||
add: 'release.txt' |
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 @@ | ||
# Logs | ||
/*.log | ||
/.idea | ||
/cache.json | ||
/sb |
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 @@ | ||
refs/tags/v1.0.0 |
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,16 @@ | ||
ansible==9.5.1 | ||
ansible-lint==24.5.0 | ||
argon2_cffi==23.1.0 | ||
dnspython==2.6.1 | ||
docker==7.0.0 | ||
jinja2==3.1.4 | ||
jmespath==1.0.1 | ||
lxml==5.2.2 | ||
ndg-httpsclient==0.5.1 | ||
netaddr==1.2.1 | ||
passlib==1.7.4 | ||
PyMySQL==1.1.0 | ||
pyOpenSSL==24.1.0 | ||
requests==2.31.0 | ||
ruamel.yaml==0.18.6 | ||
tld==0.13 |
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,4 @@ | ||
PyYAML~=6.0.1 | ||
nuitka~=2.2.3 | ||
requests==2.31.0 | ||
python-magic==0.4.27 |
Oops, something went wrong.