Skip to content

Commit

Permalink
feat: create react-ts-starter artifact (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker authored Jan 14, 2025
1 parent 05b561d commit 8c46eb5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
- name: react-starter
target: scratch_react_starter
out: react-starter.tar.gz
- name: react-ts-starter
target: scratch_react_ts_starter
out: react-ts-starter.tar.gz
- name: react-example
target: scratch_react_example
out: react-example.tar.gz
Expand Down Expand Up @@ -110,6 +113,12 @@ jobs:
name: react-starter.tar.gz
path: .

- name: Download react-ts-starter
uses: actions/download-artifact@v4
with:
name: react-ts-starter.tar.gz
path: .

- name: Download react-example
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -173,6 +182,7 @@ jobs:
./nextjs-starter.tar.gz
./nextjs-example.tar.gz
./react-starter.tar.gz
./react-ts-starter.tar.gz
./react-example.tar.gz
./react-workshop.tar.gz
./vue-starter.tar.gz
Expand Down Expand Up @@ -214,6 +224,12 @@ jobs:
name: react-starter.tar.gz
path: out/templates

- name: Download react-ts-starter
uses: actions/download-artifact@v4
with:
name: react-ts-starter.tar.gz
path: out/templates

- name: Download react-example
uses: actions/download-artifact@v4
with:
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ RUN ./docker/compress nextjs-example
FROM deps as build_react_starter
RUN ./docker/compress react-starter

FROM deps as build_react_ts_starter
RUN ./docker/compress react-ts-starter

FROM deps as build_react_example
RUN ./docker/compress react-example

Expand Down Expand Up @@ -67,6 +70,9 @@ COPY --from=build_nextjs_example ./prepare/target/nextjs-example.tar.gz /
FROM scratch AS scratch_react_starter
COPY --from=build_react_starter ./prepare/target/react-starter.tar.gz /

FROM scratch AS scratch_react_ts_starter
COPY --from=build_react_ts_starter ./prepare/target/react-ts-starter.tar.gz /

FROM scratch AS scratch_react_example
COPY --from=build_react_example ./prepare/target/react-example.tar.gz /

Expand Down

0 comments on commit 8c46eb5

Please sign in to comment.