mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
fix: update public/static to /static
This commit is contained in:
8
.github/workflows/build-android.yml
vendored
8
.github/workflows/build-android.yml
vendored
@@ -129,10 +129,10 @@ jobs:
|
||||
- name: Prepare public Directory
|
||||
run: |
|
||||
cp -r static public/
|
||||
rm -rvf public/static/js/publishing
|
||||
rm -rvf public/static/js/*.js.map || true
|
||||
rm -rvf public/static/*.*
|
||||
rm -rvf public/static/ios
|
||||
rm -rvf public/js/publishing
|
||||
rm -rvf public/js/*.js.map || true
|
||||
rm -rvf public/*.*
|
||||
rm -rvf public/ios
|
||||
rm -rvf android/app/src/main/assets/public || true
|
||||
|
||||
- name: Sync public to Android Project
|
||||
|
||||
68
.github/workflows/build-demo.yml
vendored
68
.github/workflows/build-demo.yml
vendored
@@ -1,68 +0,0 @@
|
||||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
name: Build-Demo
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
git-ref:
|
||||
description: "Release Git Ref (Which branch or tag to build?)"
|
||||
required: true
|
||||
default: "master"
|
||||
cloudflare-project-name:
|
||||
description: "Cloudflare pages project name"
|
||||
required: true
|
||||
default: "logseq-demo"
|
||||
|
||||
release:
|
||||
types: [released]
|
||||
|
||||
env:
|
||||
CLOJURE_VERSION: '1.11.1.1413'
|
||||
NODE_VERSION: '20'
|
||||
JAVA_VERSION: '17'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
asset-path: ${GITHUB_REF##*/}/static/js/
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
||||
with:
|
||||
ref: ${{ github.event.inputs.git-ref }}
|
||||
|
||||
- name: Setup Java JDK
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: ${{ env.JAVA_VERSION }}
|
||||
|
||||
- name: Install Node.js, NPM and Yarn
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
|
||||
- name: Setup clojure
|
||||
uses: DeLaGuardo/setup-clojure@10.1
|
||||
with:
|
||||
cli: ${{ env.CLOJURE_VERSION }}
|
||||
|
||||
- name: Fetch yarn deps
|
||||
run: yarn cache clean && yarn install --frozen-lockfile
|
||||
|
||||
- name: Build Released-Web
|
||||
run: |
|
||||
yarn gulp:build && clojure -M:cljs release app --config-merge '{:asset-path "${{env.asset-path}}" :compiler-options {:source-map-include-sources-content false :source-map-detail-level :symbols}}'
|
||||
ls -ah ./public
|
||||
|
||||
- name: Publish to Cloudflare Pages
|
||||
uses: cloudflare/pages-action@1
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: 2553ea8236c11ea0f88de28fce1cbfee
|
||||
projectName: ${{ github.event.inputs.cloudflare-project-name || 'logseq-demo' }}
|
||||
directory: 'static'
|
||||
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: 'production'
|
||||
2
.github/workflows/build-ios-release.yml
vendored
2
.github/workflows/build-ios-release.yml
vendored
@@ -62,7 +62,7 @@ jobs:
|
||||
LOGSEQ_POSTHOG_TOKEN: ${{ secrets.LOGSEQ_POSTHOG_TOKEN }}
|
||||
|
||||
- name: Sync static build files
|
||||
run: rsync -avz --exclude node_modules --exclude '*.js.map' --exclude android ./static/ ./public/static/
|
||||
run: rsync -avz --exclude node_modules --exclude '*.js.map' --exclude android ./static/ ./public/
|
||||
|
||||
- name: Prepare iOS build
|
||||
run: npx cap sync ios
|
||||
|
||||
2
.github/workflows/build-ios.yml
vendored
2
.github/workflows/build-ios.yml
vendored
@@ -72,7 +72,7 @@ jobs:
|
||||
run: yarn install && yarn release-app
|
||||
|
||||
- name: Sync static build files
|
||||
run: rsync -avz --exclude node_modules --exclude '*.js.map' --exclude android ./static/ ./public/static/
|
||||
run: rsync -avz --exclude node_modules --exclude '*.js.map' --exclude android ./static/ ./public/
|
||||
|
||||
- name: Prepare iOS build
|
||||
run: npx cap sync ios
|
||||
|
||||
71
.github/workflows/build-stage.yml
vendored
71
.github/workflows/build-stage.yml
vendored
@@ -1,71 +0,0 @@
|
||||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
name: Build-Stage
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
git-ref:
|
||||
description: "Release Git Ref (Which branch or tag to build?)"
|
||||
required: true
|
||||
default: "master"
|
||||
cloudflare-project-name:
|
||||
description: "Cloudflare pages project name"
|
||||
required: true
|
||||
default: "logseq-dev"
|
||||
|
||||
release:
|
||||
types: [released]
|
||||
|
||||
env:
|
||||
CLOJURE_VERSION: '1.11.1.1413'
|
||||
NODE_VERSION: '20'
|
||||
JAVA_VERSION: '17'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
||||
with:
|
||||
ref: ${{ github.event.inputs.git-ref }}
|
||||
|
||||
- name: Setup Java JDK
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: ${{ env.JAVA_VERSION }}
|
||||
|
||||
- name: Install Node.js, NPM and Yarn
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
|
||||
- name: Setup clojure
|
||||
uses: DeLaGuardo/setup-clojure@10.1
|
||||
with:
|
||||
cli: ${{ env.CLOJURE_VERSION }}
|
||||
|
||||
- name: Fetch yarn deps
|
||||
run: yarn cache clean && yarn install --frozen-lockfile
|
||||
|
||||
- name: Set Build Environment Variables
|
||||
run: |
|
||||
echo "ENABLE_FILE_SYNC_PRODUCTION=false" >> $GITHUB_ENV
|
||||
|
||||
- name: Build Released-Web
|
||||
run: |
|
||||
yarn gulp:build && clojure -M:cljs release app --config-merge '{:compiler-options {:source-map true :source-map-include-sources-content false :source-map-detail-level :symbols}}'
|
||||
rsync -avz --exclude node_modules --exclude android --exclude ios ./static/ ./public/static/
|
||||
ls -lR ./public
|
||||
|
||||
- name: Publish to Cloudflare Pages
|
||||
uses: cloudflare/pages-action@1
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: 2553ea8236c11ea0f88de28fce1cbfee
|
||||
projectName: ${{ github.event.inputs.cloudflare-project-name || 'logseq-dev' }}
|
||||
directory: 'public'
|
||||
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: 'production'
|
||||
2
.github/workflows/clj-e2e.yml
vendored
2
.github/workflows/clj-e2e.yml
vendored
@@ -79,7 +79,7 @@ jobs:
|
||||
- name: Prepare E2E test build
|
||||
run: |
|
||||
yarn gulp:build && clojure -M:cljs release app --config-merge "{:closure-defines {frontend.config/DEV-RELEASE true}}" --debug
|
||||
rsync -avz --exclude node_modules --exclude android --exclude ios ./static/ ./public/static/
|
||||
rsync -avz --exclude node_modules --exclude android --exclude ios ./static/ ./public/
|
||||
ls -lR ./public
|
||||
|
||||
- name: Run e2e tests
|
||||
|
||||
2
.github/workflows/clj-rtc-e2e.yml
vendored
2
.github/workflows/clj-rtc-e2e.yml
vendored
@@ -80,7 +80,7 @@ jobs:
|
||||
- name: Prepare E2E test build
|
||||
run: |
|
||||
yarn gulp:build && clojure -M:cljs release app --config-merge "{:closure-defines {frontend.config/DEV-RELEASE true}}" --debug
|
||||
rsync -avz --exclude node_modules --exclude android --exclude ios ./static/ ./public/static/
|
||||
rsync -avz --exclude node_modules --exclude android --exclude ios ./static/ ./public/
|
||||
ls -lR ./public
|
||||
|
||||
- name: Run e2e tests
|
||||
|
||||
6
.github/workflows/deploy-db-test-pages.yml
vendored
6
.github/workflows/deploy-db-test-pages.yml
vendored
@@ -43,9 +43,9 @@ jobs:
|
||||
- name: Build Released-Web
|
||||
run: |
|
||||
yarn gulp:build && clojure -M:cljs release app --config-merge '{:compiler-options {:source-map true :source-map-include-sources-content true :source-map-detail-level :symbols}}'
|
||||
rsync -avz --exclude node_modules --exclude android --exclude ios ./static/ ./public/static/
|
||||
ls -lR ./public && mkdir r2 && mv ./public/static/js/main.js.map ./r2/db-test.main.js.map
|
||||
sed -i 's/=main.js.map/=https:\/\/assets.logseq.io\/db-test.main.js.map/g' ./public/static/js/main.js
|
||||
rsync -avz --exclude node_modules --exclude android --exclude ios ./static/ ./public/
|
||||
ls -lR ./public && mkdir r2 && mv ./public/js/main.js.map ./r2/db-test.main.js.map
|
||||
sed -i 's/=main.js.map/=https:\/\/assets.logseq.io\/db-test.main.js.map/g' ./public/js/main.js
|
||||
env:
|
||||
LOGSEQ_SENTRY_DSN: ${{ secrets.LOGSEQ_SENTRY_DSN }}
|
||||
LOGSEQ_POSTHOG_TOKEN: ${{ secrets.LOGSEQ_POSTHOG_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user