Update workflows for Forgejo runner
This commit is contained in:
parent
0c9b00dbb1
commit
c2b37a8243
3 changed files with 8 additions and 38 deletions
9
.github/workflows/deploy.yml
vendored
9
.github/workflows/deploy.yml
vendored
|
@ -4,19 +4,12 @@ on: workflow_dispatch
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: antville
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
name: weblogs.at
|
name: weblogs.at
|
||||||
url: https://weblogs.at
|
url: https://weblogs.at
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up SSH agent
|
|
||||||
uses: antville/helma/.github/actions/ssh@helma-🐜
|
|
||||||
with:
|
|
||||||
config: ${{ vars.SSH_CONFIG }}
|
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
||||||
known-hosts: ${{ vars.SSH_KNOWN_HOSTS }}
|
|
||||||
|
|
||||||
- name: Copy files to production server
|
- name: Copy files to production server
|
||||||
run: ssh staging-server deploy-helma
|
run: ssh staging-server deploy-helma
|
||||||
|
|
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
|
@ -10,7 +10,7 @@ permissions:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: antville
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
@ -19,27 +19,20 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Java
|
|
||||||
uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: 21
|
|
||||||
|
|
||||||
- name: Set up Gradle
|
|
||||||
uses: gradle/actions/setup-gradle@v4
|
|
||||||
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew assembleDist
|
run: ./gradlew assembleDist
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
|
# FIXME: Currently only outputs gh command; adapt for Forgejo
|
||||||
run: |
|
run: |
|
||||||
gh release create "$GITHUB_REF_NAME" \
|
echo gh release create "$GITHUB_REF_NAME" \
|
||||||
--repo "$GITHUB_REPOSITORY" \
|
--repo "$GITHUB_REPOSITORY" \
|
||||||
--title "$(date +'%d %b %Y')" \
|
--title "$(date +'%d %b %Y')" \
|
||||||
--generate-notes
|
--generate-notes
|
||||||
|
|
||||||
- name: Upload assets
|
- name: Upload assets
|
||||||
|
# FIXME: Currently only outputs gh command; adapt for Forgejo
|
||||||
run: |
|
run: |
|
||||||
gh release upload "$GITHUB_REF_NAME" \
|
echo gh release upload "$GITHUB_REF_NAME" \
|
||||||
build/distributions/helma-*.* \
|
build/distributions/helma-*.* \
|
||||||
--clobber
|
--clobber
|
||||||
|
|
20
.github/workflows/stage.yml
vendored
20
.github/workflows/stage.yml
vendored
|
@ -4,31 +4,15 @@ on: workflow_dispatch
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stage:
|
stage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: antville
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
name: stage
|
name: stage
|
||||||
url: https://antville-test.online
|
url: ${{ vars.stage_url }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up SSH agent
|
|
||||||
uses: ./.github/actions/ssh
|
|
||||||
with:
|
|
||||||
config: ${{ vars.SSH_CONFIG }}
|
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
||||||
known-hosts: ${{ vars.SSH_KNOWN_HOSTS }}
|
|
||||||
|
|
||||||
- name: Set up Java
|
|
||||||
uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: 21
|
|
||||||
|
|
||||||
- name: Set up Gradle
|
|
||||||
uses: gradle/actions/setup-gradle@v4
|
|
||||||
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew installDist
|
run: ./gradlew installDist
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue