Removed all github workflows
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
name: Build Sanity Check
|
name: Build Sanity Check
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -18,5 +18,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: "1.26.1"
|
go-version: "1.26.1"
|
||||||
|
|
||||||
|
- name: Set up Node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: "22"
|
||||||
|
|
||||||
|
- name: Install yarn
|
||||||
|
run: npm install -g yarn
|
||||||
|
|
||||||
- name: Prepare Dependencies and Build
|
- name: Prepare Dependencies and Build
|
||||||
run: make dist
|
run: make dist
|
||||||
@@ -4,10 +4,6 @@ on:
|
|||||||
- cron: "0 2 * * *"
|
- cron: "0 2 * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
packages: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -15,16 +11,19 @@ jobs:
|
|||||||
skip: ${{ steps.check_changes.outputs.skip }}
|
skip: ${{ steps.check_changes.outputs.skip }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Check for changes since last nightly release
|
- name: Check for changes since last nightly release
|
||||||
id: check_changes
|
id: check_changes
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
API: ${{ github.server_url }}/api/v1
|
||||||
|
REPO: ${{ github.repository }}
|
||||||
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
LAST_NIGHTLY_SHA=$(gh release view nightly --json targetCommitish -q '.targetCommitish' 2>/dev/null || echo "")
|
LAST_NIGHTLY_SHA=$(curl -sf -H "Authorization: token $TOKEN" \
|
||||||
|
"$API/repos/$REPO/releases/tags/nightly" | jq -r '.target_commitish // empty' || echo "")
|
||||||
CURRENT_SHA=$(git rev-parse HEAD)
|
CURRENT_SHA=$(git rev-parse HEAD)
|
||||||
echo "Last nightly SHA: $LAST_NIGHTLY_SHA"
|
echo "Last nightly SHA: $LAST_NIGHTLY_SHA"
|
||||||
echo "Current SHA: $CURRENT_SHA"
|
echo "Current SHA: $CURRENT_SHA"
|
||||||
@@ -42,7 +41,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -64,10 +63,18 @@ jobs:
|
|||||||
username: ${{ secrets.GITEA_REGISTRY_USER }}
|
username: ${{ secrets.GITEA_REGISTRY_USER }}
|
||||||
password: ${{ secrets.GITEA_REGISTRY_TOKEN }}
|
password: ${{ secrets.GITEA_REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Delete existing nightly release
|
- name: Delete existing nightly release and tag
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
API: ${{ github.server_url }}/api/v1
|
||||||
run: gh release delete nightly --yes --cleanup-tag 2>/dev/null || true
|
REPO: ${{ github.repository }}
|
||||||
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
RELEASE_ID=$(curl -sf -H "Authorization: token $TOKEN" \
|
||||||
|
"$API/repos/$REPO/releases/tags/nightly" | jq -r '.id // empty' || echo "")
|
||||||
|
if [ -n "$RELEASE_ID" ]; then
|
||||||
|
curl -sf -X DELETE -H "Authorization: token $TOKEN" "$API/repos/$REPO/releases/$RELEASE_ID" || true
|
||||||
|
curl -sf -X DELETE -H "Authorization: token $TOKEN" "$API/repos/$REPO/tags/nightly" || true
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Set nightly date
|
- name: Set nightly date
|
||||||
id: tag
|
id: tag
|
||||||
@@ -86,7 +93,6 @@ jobs:
|
|||||||
version: latest
|
version: latest
|
||||||
args: release --snapshot --parallelism 1 --clean --config .goreleaser-nightly.yml
|
args: release --snapshot --parallelism 1 --clean --config .goreleaser-nightly.yml
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
EAGLECAST_VERSION: nightly-${{ steps.tag.outputs.date }}
|
EAGLECAST_VERSION: nightly-${{ steps.tag.outputs.date }}
|
||||||
|
|
||||||
- name: Push Docker images
|
- name: Push Docker images
|
||||||
@@ -109,19 +115,36 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker buildx imagetools inspect source.offmarket.win/aleagle/eaglecast:nightly
|
docker buildx imagetools inspect source.offmarket.win/aleagle/eaglecast:nightly
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create Gitea release and upload assets
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
API: ${{ github.server_url }}/api/v1
|
||||||
|
REPO: ${{ github.repository }}
|
||||||
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
gh release create nightly \
|
BODY="> **Warning**: This is an automated nightly build from the master branch.
|
||||||
--title "Nightly release" \
|
|
||||||
--notes "
|
|
||||||
> **Warning**: This is an automated nightly build from the master branch.
|
|
||||||
> It may contain bugs and breaking changes. Use at your own risk.
|
> It may contain bugs and breaking changes. Use at your own risk.
|
||||||
> Available on the Gitea container registry as `source.offmarket.win/aleagle/eaglecast:nightly`.
|
> Available on the Gitea container registry as \`source.offmarket.win/aleagle/eaglecast:nightly\`.
|
||||||
> For stable releases, please use a versioned release.
|
> For stable releases, please use a versioned release.
|
||||||
|
|
||||||
Built from commit: $(git rev-parse --short HEAD)" \
|
Built from commit: $(git rev-parse --short HEAD)"
|
||||||
--prerelease \
|
|
||||||
--target $(git rev-parse HEAD) \
|
PAYLOAD=$(jq -n \
|
||||||
dist/*.tar.gz
|
--arg tag "nightly" \
|
||||||
|
--arg target "$(git rev-parse HEAD)" \
|
||||||
|
--arg name "Nightly release" \
|
||||||
|
--arg body "$BODY" \
|
||||||
|
'{tag_name: $tag, target_commitish: $target, name: $name, body: $body, prerelease: true}')
|
||||||
|
|
||||||
|
RELEASE_ID=$(curl -sf -X POST \
|
||||||
|
-H "Authorization: token $TOKEN" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-d "$PAYLOAD" \
|
||||||
|
"$API/repos/$REPO/releases" | jq -r '.id')
|
||||||
|
|
||||||
|
for f in dist/*.tar.gz; do
|
||||||
|
curl -sf -X POST \
|
||||||
|
-H "Authorization: token $TOKEN" \
|
||||||
|
-F "attachment=@$f" \
|
||||||
|
"$API/repos/$REPO/releases/$RELEASE_ID/assets?name=$(basename "$f")" > /dev/null
|
||||||
|
echo "uploaded: $(basename "$f")"
|
||||||
|
done
|
||||||
@@ -5,20 +5,21 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- "v*" # Will trigger only if tag is pushed matching pattern `v*` (Eg: `v0.1.0`)
|
- "v*" # Will trigger only if tag is pushed matching pattern `v*` (Eg: `v0.1.0`)
|
||||||
|
|
||||||
permissions: write-all
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
goreleaser:
|
goreleaser:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
@@ -35,14 +36,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
make dist
|
make dist
|
||||||
|
|
||||||
- name: Check Docker Version
|
|
||||||
run: |
|
|
||||||
docker version
|
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v6
|
uses: goreleaser/goreleaser-action@v6
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
args: release --parallelism 1 --clean
|
args: release --parallelism 1 --clean
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# goreleaser publishes the release to Gitea (see gitea_urls in .goreleaser.yml).
|
||||||
|
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
name: publish-github-pages
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
paths:
|
|
||||||
- 'docs/**'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
python-version: 3.x
|
|
||||||
- run: pip install mkdocs-material
|
|
||||||
|
|
||||||
# Build the mkdocs documentation in the docs/publish/docs dir. This will be at (/docs)
|
|
||||||
# The -d (output) path is relative to the -f (source) path
|
|
||||||
- name: Build docs site
|
|
||||||
run: mkdocs build -f docs/docs/mkdocs.yml -d ../publish/docs
|
|
||||||
|
|
||||||
- name: Generate Swagger UI
|
|
||||||
uses: Legion2/swagger-ui-action@v1
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
spec-file: ./docs/swagger/collections.yaml
|
|
||||||
output: ./docs/publish/docs/swagger
|
|
||||||
|
|
||||||
- name: Deploy
|
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
publish_branch: gh-pages
|
|
||||||
publish_dir: ./docs/publish
|
|
||||||
user_name: 'github-actions[bot]'
|
|
||||||
user_email: 'github-actions[bot]@users.noreply.github.com'
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
name: Hodor AI Code Review
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request_target:
|
|
||||||
types: [labeled, synchronize]
|
|
||||||
paths-ignore:
|
|
||||||
- 'i18n/**'
|
|
||||||
- '*.md'
|
|
||||||
- 'LICENSE'
|
|
||||||
- '.gitignore'
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
review:
|
|
||||||
if: >-
|
|
||||||
(github.event.action == 'labeled' && github.event.label.name == 'hodor-review') ||
|
|
||||||
(github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'hodor-review'))
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Run Hodor review
|
|
||||||
run: |
|
|
||||||
docker run --rm \
|
|
||||||
-e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} \
|
|
||||||
-e LLM_API_KEY=${{ secrets.LLM_API_KEY }} \
|
|
||||||
ghcr.io/mr-karan/hodor:0.3.4 \
|
|
||||||
"https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request.number }}" \
|
|
||||||
--model "${{ vars.HODOR_MODEL || 'gpt-5.2' }}" \
|
|
||||||
--post
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
name: "close-stale-issues-and-prs"
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: "30 1 * * *"
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
stale:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/stale@v9
|
|
||||||
with:
|
|
||||||
days-before-stale: 150
|
|
||||||
stale-issue-label: "stale"
|
|
||||||
stale-pr-label: "stale"
|
|
||||||
debug-only: false
|
|
||||||
exempt-all-assignees: true
|
|
||||||
operations-per-run: 1000
|
|
||||||
stale-issue-message: "This issue has been marked 'stale' after 5 months of inactivity. If there is no further activity, it will be closed in 7 days."
|
|
||||||
stale-pr-message: "This PR has been marked 'stale' after 5 months of inactivity. If there is no further activity, it will be closed in 7 days."
|
|
||||||
@@ -48,6 +48,7 @@ archives:
|
|||||||
files:
|
files:
|
||||||
- README.md
|
- README.md
|
||||||
- LICENSE
|
- LICENSE
|
||||||
|
- NOTICE
|
||||||
|
|
||||||
dockers:
|
dockers:
|
||||||
- use: buildx
|
- use: buildx
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
project_name: eaglecast
|
project_name: eaglecast
|
||||||
|
|
||||||
|
# Publish releases to the Gitea instance (requires GITEA_TOKEN).
|
||||||
|
gitea_urls:
|
||||||
|
api: https://source.offmarket.win/api/v1
|
||||||
|
download: https://source.offmarket.win
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- GO111MODULE=on
|
- GO111MODULE=on
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
@@ -40,6 +45,7 @@ archives:
|
|||||||
files:
|
files:
|
||||||
- README.md
|
- README.md
|
||||||
- LICENSE
|
- LICENSE
|
||||||
|
- NOTICE
|
||||||
|
|
||||||
dockers:
|
dockers:
|
||||||
- use: buildx
|
- use: buildx
|
||||||
|
|||||||
Reference in New Issue
Block a user