Init
parent
c74dba733a
commit
1c025c57e3
|
@ -0,0 +1,85 @@
|
|||
name: Build SimplySyncedLLC.com
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build-project:
|
||||
name: Build and Deploy
|
||||
runs-on: host
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/github-script@v7
|
||||
id: set-result
|
||||
with:
|
||||
script: |
|
||||
var fs = require("fs")
|
||||
var content = fs.readFileSync("package.json", { encoding: 'utf8', flag: 'r' })
|
||||
var pkg = JSON.parse(content)
|
||||
return pkg.version
|
||||
result-encoding: string
|
||||
|
||||
- name: Get result
|
||||
run: echo "gitea.simplysyncedllc.com/dex/kx3dex_radio:${{steps.set-result.outputs.result}}"
|
||||
|
||||
- name: Install QEMU
|
||||
run: apt-get update && apt-get install -y qemu-user-static
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18.20.0'
|
||||
|
||||
- name: Create a new release and publish package.
|
||||
id: release
|
||||
run: |
|
||||
CURR_VER="$(cat package.json | jq -r .name)_v$(cat package.json | jq -r .version)"
|
||||
CURR_NAME="$(cat package.json | jq -r .name) v$(cat package.json | jq -r .version)"
|
||||
|
||||
echo "Checking https://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases for name ${CURR_NAME}"
|
||||
|
||||
if curl -s -X GET -H "Authorization: token ${{ secrets.ACTION_TOKEN }}" https://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases | grep -o "\"name\"\:\"${CURR_NAME}\"" > /dev/null; then
|
||||
echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists";
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "New release ${CURR_VER} found, running npm install..."
|
||||
|
||||
npm install && npm run build
|
||||
|
||||
echo "Creating ${CURR_VER} release on gitea"
|
||||
RELEASE_RESULT=$(curl \
|
||||
-X POST \
|
||||
-H "Authorization: token ${{ secrets.ACTION_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
https://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases \
|
||||
-d "{\"tag_name\":\"${CURR_VER}\",\"name\":\"${CURR_NAME}\",\"body\":\"Automatic release from gitea :\n\n${{ gitea.event.head_commit.message }}\"}")
|
||||
|
||||
|
||||
RELEASE_ID=$(echo $RELEASE_RESULT | jq -r .id)
|
||||
echo "Adding ${CURR_VER}_build-sc.7z to release ${RELEASE_ID}"
|
||||
|
||||
curl \
|
||||
-X POST \
|
||||
-H "Authorization: token ${{ secrets.ACTION_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
https://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases/$RELEASE_ID/assets
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: |
|
||||
linux/arm64
|
||||
push: true
|
||||
tags: |
|
||||
gitea.simplysyncedllc.com/dex/simplysyncedllc_website:latest
|
||||
gitea.simplysyncedllc.com/dex/simplysyncedllc_website:${{steps.set-result.outputs.result}}
|
|
@ -0,0 +1,25 @@
|
|||
name: Build SimplySyncedLLC.com
|
||||
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- master
|
||||
branches:
|
||||
- '*'
|
||||
|
||||
|
||||
jobs:
|
||||
build-project:
|
||||
name: Build project
|
||||
runs-on: host
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Install NPM
|
||||
run: npm install
|
||||
- name: Build Site
|
||||
run: npm run build
|
|
@ -0,0 +1,41 @@
|
|||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||
|
||||
# dependencies
|
||||
node_modules
|
||||
/.pnp
|
||||
.pnp.js
|
||||
|
||||
# testing
|
||||
/coverage
|
||||
|
||||
# next.js
|
||||
/.next/
|
||||
/out/
|
||||
|
||||
# production
|
||||
/build
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
*.pem
|
||||
|
||||
# debug
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
.pnpm-debug.log*
|
||||
|
||||
# local env files
|
||||
.env.local
|
||||
.env.production
|
||||
.env
|
||||
|
||||
# vercel
|
||||
.vercel
|
||||
|
||||
# typescript
|
||||
*.tsbuildinfo
|
||||
next-env.d.ts
|
||||
|
||||
# contentlayer
|
||||
.contentlayer
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"typescript.tsdk": "node_modules/typescript/lib",
|
||||
"typescript.enablePromptUseWorkspaceTsdk": true
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@contentlayer-source-remote-files-npm-0.3.4-b92fbd827f-88ea1aeba7.zip
vendored
Normal file
BIN
.yarn/cache/@contentlayer-source-remote-files-npm-0.3.4-b92fbd827f-88ea1aeba7.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@effect-ts-otel-exporter-trace-otlp-grpc-npm-0.15.1-02047ea55d-5f81693c72.zip
vendored
Normal file
BIN
.yarn/cache/@effect-ts-otel-exporter-trace-otlp-grpc-npm-0.15.1-02047ea55d-5f81693c72.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@effect-ts-otel-sdk-trace-node-npm-0.15.1-65dc418d92-70a5ba0ced.zip
vendored
Normal file
BIN
.yarn/cache/@effect-ts-otel-sdk-trace-node-npm-0.15.1-65dc418d92-70a5ba0ced.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@esbuild-plugins-node-resolve-npm-0.1.4-fffd1de563-eba359dd17.zip
vendored
Normal file
BIN
.yarn/cache/@esbuild-plugins-node-resolve-npm-0.1.4-fffd1de563-eba359dd17.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@fal-works-esbuild-plugin-global-externals-npm-2.1.2-b50ef0c6e7-c59715902b.zip
vendored
Normal file
BIN
.yarn/cache/@fal-works-esbuild-plugin-global-externals-npm-2.1.2-b50ef0c6e7-c59715902b.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@jridgewell-sourcemap-codec-npm-1.4.15-a055fb62cf-b881c7e503.zip
vendored
Normal file
BIN
.yarn/cache/@jridgewell-sourcemap-codec-npm-1.4.15-a055fb62cf-b881c7e503.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@opentelemetry-context-async-hooks-npm-1.24.1-a24356d1b6-006d4c09e8.zip
vendored
Normal file
BIN
.yarn/cache/@opentelemetry-context-async-hooks-npm-1.24.1-a24356d1b6-006d4c09e8.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@opentelemetry-exporter-trace-otlp-grpc-npm-0.39.1-4b3fdfe47e-2b75379f68.zip
vendored
Normal file
BIN
.yarn/cache/@opentelemetry-exporter-trace-otlp-grpc-npm-0.39.1-4b3fdfe47e-2b75379f68.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@opentelemetry-otlp-exporter-base-npm-0.39.1-3f8221c3e3-df3adcf43d.zip
vendored
Normal file
BIN
.yarn/cache/@opentelemetry-otlp-exporter-base-npm-0.39.1-3f8221c3e3-df3adcf43d.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@opentelemetry-otlp-grpc-exporter-base-npm-0.39.1-480db48308-30eece12d4.zip
vendored
Normal file
BIN
.yarn/cache/@opentelemetry-otlp-grpc-exporter-base-npm-0.39.1-480db48308-30eece12d4.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@opentelemetry-otlp-transformer-npm-0.39.1-6253c96fb5-e8501850fc.zip
vendored
Normal file
BIN
.yarn/cache/@opentelemetry-otlp-transformer-npm-0.39.1-6253c96fb5-e8501850fc.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@opentelemetry-propagator-b3-npm-1.24.1-b9e8a6fbaf-ee05778a5b.zip
vendored
Normal file
BIN
.yarn/cache/@opentelemetry-propagator-b3-npm-1.24.1-b9e8a6fbaf-ee05778a5b.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@opentelemetry-propagator-jaeger-npm-1.24.1-fcabfbbe2b-fa59c229a2.zip
vendored
Normal file
BIN
.yarn/cache/@opentelemetry-propagator-jaeger-npm-1.24.1-fcabfbbe2b-fa59c229a2.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@opentelemetry-sdk-metrics-npm-1.13.0-a6cafa2e90-2f87444b6c.zip
vendored
Normal file
BIN
.yarn/cache/@opentelemetry-sdk-metrics-npm-1.13.0-a6cafa2e90-2f87444b6c.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@opentelemetry-sdk-trace-base-npm-1.13.0-c89ec95ad8-bfe95d56de.zip
vendored
Normal file
BIN
.yarn/cache/@opentelemetry-sdk-trace-base-npm-1.13.0-c89ec95ad8-bfe95d56de.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@opentelemetry-sdk-trace-base-npm-1.24.1-abf5712c77-74d37cdaeb.zip
vendored
Normal file
BIN
.yarn/cache/@opentelemetry-sdk-trace-base-npm-1.24.1-abf5712c77-74d37cdaeb.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@opentelemetry-sdk-trace-node-npm-1.24.1-278214a342-e9c8765878.zip
vendored
Normal file
BIN
.yarn/cache/@opentelemetry-sdk-trace-node-npm-1.24.1-278214a342-e9c8765878.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@opentelemetry-semantic-conventions-npm-1.13.0-acc1d46565-9cccf1d733.zip
vendored
Normal file
BIN
.yarn/cache/@opentelemetry-semantic-conventions-npm-1.13.0-acc1d46565-9cccf1d733.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@opentelemetry-semantic-conventions-npm-1.24.1-cbaaeb04f0-af5c16528b.zip
vendored
Normal file
BIN
.yarn/cache/@opentelemetry-semantic-conventions-npm-1.24.1-cbaaeb04f0-af5c16528b.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@types-react-google-recaptcha-npm-2.1.9-d4edc1ed66-5a90bb50fe.zip
vendored
Normal file
BIN
.yarn/cache/@types-react-google-recaptcha-npm-2.1.9-d4edc1ed66-5a90bb50fe.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue