scimserviceprovider/.forgejo/workflows/main.yml
Hugo Renard 88f6a8b1a8
Some checks failed
/ build (push) Failing after 5s
/ release (push) Has been skipped
ci: use forgejo & nix
2024-11-29 18:24:55 +01:00

26 lines
1 KiB
YAML

on: [push, tag]
jobs:
build:
runs-on: native
steps:
- uses: actions/checkout@v4
- run: nix run .#make
env:
SCIMSERVICEPROVIDER_CRT: ${{ secrets.SCIMSERVICEPROVIDER_CRT }}
SCIMSERVICEPROVIDER_KEY: ${{ secrets.SCIMSERVICEPROVIDER_KEY }}
- uses: actions/upload-artifact@v3
with:
path: build/scimserviceprovider.*.tar.gz*
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 }}
mv ./artifact/keycloak-scim.jar ./artifact/keycloak-scim-${{ github.ref_name }}.jar
tea login add --url ${{ env.GITHUB_SERVER_URL }}
tea release create --asset ./artifact/keycloak-scim-${{ github.ref_name }}.jar --note "$(git-cliff -s all --current)" --repo "${{ github.repository }}" --tag "${{ github.ref_name }}" --title "${{ github.ref_name }}"