24 lines
925 B
YAML
24 lines
925 B
YAML
name: ci
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build_and_publish:
|
|
runs-on: docker
|
|
container:
|
|
image: ghcr.io/catthehacker/ubuntu:runner-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
- run: npm install
|
|
- run: sudo apt update && sudo apt install -y maven
|
|
- run: npm run build-keycloak-theme
|
|
- run: |
|
|
echo -vvvvH "Authorization: token ${{ forgejo.token }}" -X DELETE "${{ forgejo.server_url }}/api/packages/sr2/generic/keycloak-theme/latest"
|
|
- run: |
|
|
echo -vvvvH "Authorization: token ${{ forgejo.token }}" -X PUT --upload-file dist_keycloak/keycloak-theme-for-kc-all-other-versions.jar ${{ forgejo.server_url }}/api/packages/sr2/generic/keycloak-theme/latest/sr2-theme.jar
|