diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d0c33db --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM ghcr.io/blueprintframework/blueprint:v1.11.10 + +ENV BASE_DIR=/srv/pterodactyl + +COPY /github/workspace/. /srv/pterodactyl/.blueprint/dev/ + +RUN blueprint -build + +RUN identifier=$(cat /srv/pterodactyl/.blueprint/dev/conf.yml | grep -m 1 "identifier:" | cut -d ":" -f2 | xargs) && \ + cp /srv/pterodactyl/${identifier}.blueprint /github/workspace/${identifier}.blueprint && \ + echo "${identifier}.blueprint" >> $GITHUB_OUTPUT \ No newline at end of file diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..7a878f5 --- /dev/null +++ b/action.yml @@ -0,0 +1,8 @@ +name: 'Blueprint Build' +description: 'Builds a blueprint addon' +outputs: + file: + description: 'The path to the built addon file' +runs: + using: 'docker' + image: 'Dockerfile' \ No newline at end of file