diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml deleted file mode 100644 index 583e538..0000000 --- a/.gitea/workflows/release.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: release - -on: - push: - tags: - - "*" - -jobs: - release: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup go - uses: actions/setup-go@v4 - with: - go-version: ">=1.20.1" - - - name: Install dependencies - run: | - sudo apt update -y - sudo apt install -y python3 python3-build python3-requests make - - - name: Build wheel package - run: make - - - name: Create a release - uses: "https://gitea.com/actions/release-action@main" - with: - files: |- - dist/** - api_key: ${{secrets.REPO_TOKEN}} diff --git a/README.md b/README.md index ead91fa..707c95f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # ups | upstream scripts ![](https://git.ngn.tf/ngn/ups/actions/workflows/format.yml/badge.svg) -![](https://git.ngn.tf/ngn/ups/actions/workflows/release.yml/badge.svg) collection of bash and python scripts for pulling and managing patches from the upstream git repos of my personal forks @@ -95,3 +94,36 @@ paths of the patches: ] ... ``` + +### workflow + +here's an example gitea workflow action to run ups every week and check for any +upstream updates: + +```yaml +name: ups + +on: + schedule: + - cron: "@weekly" + +jobs: + ups: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install dependencies + run: | + sudo apt update -y + sudo apt install -y python3 python3-build python3-requests make + + - name: Install ups + run: | + git clone https://git.ngn.tf/ngn/ups && cd ups + make && make install + + - name: Run ups + run: PATH=~/.local/bin:$PATH ups-check +```