diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4ee4c5047..a851a0edc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -96,9 +96,7 @@ jobs: password: ${{ secrets.NUMARY_GITHUB_TOKEN }} - run: > /nix/var/nix/profiles/default/bin/nix --extra-experimental-features "nix-command" --extra-experimental-features "flakes" - develop --impure --command earthly --no-output - ${{ contains(github.event.pull_request.labels.*.name, 'no-cache') && '--no-cache' || '' }} - +release --mode=ci + develop --impure --command just release-ci env: GITHUB_TOKEN: ${{ secrets.NUMARY_GITHUB_TOKEN }} SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/Earthfile b/Earthfile index b4124d14b..f9f723380 100644 --- a/Earthfile +++ b/Earthfile @@ -71,12 +71,6 @@ openapi-markdown: RUN widdershins openapi.yaml -o README.md --search false --language_tabs 'http:HTTP' --summary --omitHeader SAVE ARTIFACT README.md AS LOCAL docs/api/README.md -release: - FROM core+builder-image - ARG mode=local - COPY --dir . /src - DO core+GORELEASER --mode=$mode - generate-client: FROM node:20-alpine RUN apk update && apk add yq jq diff --git a/Justfile b/Justfile index bf2c55326..4ecae3232 100644 --- a/Justfile +++ b/Justfile @@ -37,3 +37,12 @@ tests: ./... @cat coverage.txt | grep -v debug.go | grep -v "/machine/" > coverage2.txt @mv coverage2.txt coverage.txt + +release-local: + @goreleaser release --nightly --skip=publish --clean + +release-ci: + @goreleaser release --nightly --clean + +release: + @goreleaser release --clean \ No newline at end of file