packages: use openapi-generator-ignore instead of deleting extra files (#21209)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2026-03-27 20:39:24 +00:00
committed by GitHub
parent 75ba48520f
commit d4590f15e7
6 changed files with 20 additions and 31 deletions
@@ -1,2 +1,9 @@
go.mod
go.sum
.gitignore
.travis.yml
README.md
api/**
docs/**
git_push.sh
test/**
+1 -11
View File
@@ -11,15 +11,5 @@ build:
-g go \
-o local \
-c /local/config.yaml
rm -rf \
"${PWD}/.gitignore" \
"${PWD}/.openapi-generator" \
"${PWD}/.travis.yml" \
"${PWD}/README.md" \
"${PWD}/api" \
"${PWD}/docs" \
"${PWD}/git_push.sh" \
"${PWD}/test" \
"${PWD}/go.mod" \
"${PWD}/go.sum"
rm -rf "${PWD}/.openapi-generator"
go fmt .
@@ -1 +1,7 @@
Cargo.toml
.gitignore
.openapi-generator/**
docs/**
git_push.sh
.travis.yml
README.md
+2 -15
View File
@@ -3,13 +3,6 @@ PWD = $(shell pwd)
UID = $(shell id -u)
GID = $(shell id -g)
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
SED_INPLACE = sed -i ''
else
SED_INPLACE = sed -i
endif
build:
ifndef version
$(error Usage: make build version=20xx.xx.xx)
@@ -22,11 +15,5 @@ endif
-o local \
-c /local/config.yaml \
--additional-properties=packageVersion=$(version)
$(SED_INPLACE) 's/models::models::/models::/g' ${PWD}/src/apis/*
rm -rf \
"${PWD}/.gitignore" \
"${PWD}/.openapi-generator" \
"${PWD}/.travis.yml" \
"${PWD}/docs" \
"${PWD}/git_push.sh" \
"${PWD}/README.md"
sed -i 's/models::models::/models::/g' ${PWD}/src/apis/*
rm -rf "${PWD}/.openapi-generator"
@@ -1 +1,4 @@
.gitignore
.npmignore
docs/**
README.md
+1 -5
View File
@@ -14,8 +14,4 @@ build:
--additional-properties=npmVersion=0.0.0 \
--git-repo-id authentik \
--git-user-id goauthentik
rm -rf \
.npmignore \
.openapi-generator \
docs \
README.md
rm -rf "${PWD}/.openapi-generator"