diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 453e8186..98ca7656 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 - diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..f5ed8bf6 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index d57ce590..00000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -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' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index d4efdf9d..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -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 - LOG_LEVEL: debug # debug | info | warn | error | fatal - #RENOVATE_CONFIG_FILE: ./.gitlab/renovate.json - RENOVATE_ENDPOINT: ${{ github.api_url }} - RENOVATE_GIT_AUTHOR: Renovate Bot - 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 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index cea7a793..e18bc253 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -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