Compare commits

..

6 commits

5 changed files with 39 additions and 76 deletions

View file

@ -7,10 +7,9 @@ jobs:
runs-on: antville
environment:
name: p3k.org
url: https://blog.p3k.org
name: antville.org
url: https://antville.org
steps:
- name: Copy files to production server
run: ssh staging-server deploy-antville

36
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: Release
on:
workflow_dispatch:
push:
tags: '2*'
permissions:
contents: write
jobs:
build:
runs-on: antville
env:
GH_TOKEN: ${{ github.token }}
LC_TIME: en_US.UTF-8
TODAY: $(date +'%d %b %Y')
steps:
- uses: actions/checkout@v4
- name: Build with Gradle
run: ./gradlew assembleDist
- name: Create release
uses: actions/forgejo-release@v2
with:
direction: upload
url: https://code.host.antville.org
token: ${{ github.token }}
title: ${{ env.TODAY }}
#tag: $(date +'%Y.%m.%d')
release-dir: build/distributions
release-notes-assistant: true
verbose: true

View file

@ -1,22 +0,0 @@
name: Mark stale issues and pull requests
on:
schedule:
- cron: "30 1 * * *"
jobs:
stale:
runs-on: antville
permissions:
issues: write
pull-requests: write
steps:
- uses: https://github.com/actions/stale@v9
with:
repo-token: ${{ github.token }}
stale-issue-message: 'Stale issue message'
stale-pr-message: 'Stale pull request message'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'

View file

@ -1,50 +0,0 @@
name: Test
on: workflow_dispatch
jobs:
test:
runs-on: debian
environment:
name: p3k.org
url: https://blog.p3k.org
steps:
- name: Do something
run: |
whoami
pwd
ls -ahl ~
echo $SHELL
- name: Ping staging server
run: ssh staging-server ping
- uses: actions/checkout@v4
- name: Run Renovate
run: npx renovate
env:
# TODO:
#GITHUB_COM_TOKEN=
# See <https://docs.renovatebot.com/troubleshooting/#log-debug-levels>
LOG_LEVEL: debug # debug | info | warn | error | fatal
#RENOVATE_CONFIG_FILE: ./.gitlab/renovate.json
RENOVATE_ENDPOINT: ${{ github.api_url }}
RENOVATE_GIT_AUTHOR: Renovate Bot <mail+renovate@antville.org>
RENOVATE_LOG_FILE: renovate-log.ndjson
RENOVATE_LOG_FILE_LEVEL: debug
RENOVATE_PLATFORM: gitea
#RENOVATE_REPOSITORIES: $CI_PROJECT_PATH
RENOVATE_AUTODISCOVER: 'true'
RENOVATE_REPOSITORY_CACHE: 'enabled'
RENOVATE_TOKEN: ${{ vars.renovate_token }} #${{ github.token }}
- uses: actions/upload-artifact@v3
with:
name: Renovate log
path: renovate-log.ndjson
#- name: Build with Gradle
# run: ./gradlew :build

View file

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME