keycloak-scim/.forgejo/workflows/main.yml

24 lines
820 B
YAML
Raw Normal View History

2024-11-26 14:47:47 +00:00
on: [push, tag]
2024-10-31 15:43:55 +00:00
jobs:
build:
2024-11-26 14:47:47 +00:00
runs-on: native
2024-10-31 15:43:55 +00:00
steps:
- uses: actions/checkout@v4
2024-11-26 14:47:47 +00:00
- run: nix build .# --out-link keycloak-scim.jar
2024-10-31 15:43:55 +00:00
- uses: actions/upload-artifact@v3
with:
2024-11-26 14:47:47 +00:00
path: keycloak-scim.jar
2024-10-31 15:43:55 +00:00
release:
2024-11-26 14:47:47 +00:00
runs-on: native
2024-10-31 15:43:55 +00:00
needs: [build]
2024-11-26 14:47:47 +00:00
#if: github.ref_type == 'tag'
2024-10-31 15:43:55 +00:00
steps:
2024-11-26 14:47:47 +00:00
- uses: actions/checkout@v4
2024-10-31 15:43:55 +00:00
- uses: actions/download-artifact@v3
2024-11-26 14:47:47 +00:00
- 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 }}"