-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
113 changed files
with
584 additions
and
3,095 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
build | ||
.git | ||
release.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
on: | ||
workflow_call: | ||
outputs: | ||
archive: | ||
description: "The name of the archive (ZIP)" | ||
value: ${{jobs.release.outputs.archive}} | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
env: | ||
MIX_ENV: prod | ||
outputs: | ||
archive: ${{ steps.tag.outputs.tag }}.zip | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Tag name | ||
id: tag | ||
run: echo "name=tag::v$(date +%F)_${{github.run_number}}" >> $GITHUB_OUTPUT | ||
|
||
- uses: earthly/actions-setup@v1 | ||
with: | ||
version: v0.7.8 | ||
|
||
- name: Build release | ||
run: earthly +release --release_tag=${{steps.tag.outputs.tag}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Release | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
build_release: | ||
uses: ./.github/workflows/_build_release.yml | ||
|
||
tagged_release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: "${{ needs.build_release.outputs.archive }}" | ||
prerelease: false | ||
fail_on_unmatched_files: true | ||
files: | | ||
${{ needs.release.outputs.archive }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
VERSION 0.7 | ||
FROM node:18-bookworm | ||
WORKDIR /code/ | ||
ENV CI=true | ||
|
||
commit-hook: | ||
BUILD +test | ||
BUILD +lint | ||
|
||
setup-base: | ||
COPY package.json package-lock.json ./ | ||
RUN npm ci | ||
COPY --dir . ./ | ||
|
||
test: | ||
FROM +setup-base | ||
RUN npm run test | ||
|
||
lint: | ||
FROM +setup-base | ||
RUN npm run lint | ||
|
||
build-py: | ||
FROM python:3.11 | ||
WORKDIR /py | ||
RUN python -m pip install poetry | ||
COPY --dir src/framework/processing/py / | ||
RUN poetry install | ||
RUN poetry build --format wheel | ||
SAVE ARTIFACT dist/ | ||
|
||
release: | ||
BUILD +build-py | ||
ARG release_tag=release | ||
FROM +setup-base | ||
RUN apt-get update && apt install -y zip | ||
COPY +build-py/dist/* public/ | ||
RUN npm run build:css | ||
RUN --no-cache npx update-browserslist-db@latest | ||
RUN npm run build:app | ||
RUN npm run archive | ||
SAVE ARTIFACT release.zip AS LOCAL $release_tag.zip |
Oops, something went wrong.