scimserviceprovider/.forgejo/workflows/main.yml
Hugo Renard 942525fe63
All checks were successful
/ build (push) Successful in 5s
/ release (push) Successful in 11s
ci: use forgejo & nix
2024-12-02 17:29:40 +01:00

24 lines
693 B
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: nix run .#release
- run: nix run .#publish
env:
NC_STORE_TOKEN: ${{ secrets.NC_STORE_TOKEN }}