keycloak-scim/.forgejo/workflows/main.yml
Hugo Renard 6f545de320
All checks were successful
/ build (push) Successful in 15s
/ release (push) Successful in 4s
wip
2024-11-26 17:56:17 +01:00

23 lines
820 B
YAML

on: [push, tag]
jobs:
build:
runs-on: native
steps:
- uses: actions/checkout@v4
- run: nix build .# --out-link keycloak-scim.jar
- uses: actions/upload-artifact@v3
with:
path: keycloak-scim.jar
release:
runs-on: native
needs: [build]
#if: github.ref_type == 'tag'
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- run: |
export XDG_CONFIG_HOME=$PWD/.config
export GITEA_SERVER_TOKEN=${{ secrets.GITHUB_TOKEN }}
tea login add --url ${{ env.GITHUB_SERVER_URL }}
tea release create --asset ./artifact/keycloak-scim.jar --note "$(git-cliff -s all --current)" --repo "${{ github.repository }}" --tag "${{ github.ref_name }}" --title "${{ github.ref_name }}"