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

21 lines
661 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]
if: github.ref_type == 'tag'
steps:
- uses: actions/download-artifact@v3
2024-11-26 14:47:47 +00:00
- run: |
export GITEA_SERVER_TOKEN=${{ secrets.GITHUB_TOKEN }}
tea login add --url ${{ env.GITHUB_SERVER_URL }}
tea release create --asset ./artifact --repo "${{ github.repository }}" --tag "${{ github.ref_name }}" --title "${{ github.ref_name }}"