Skip to content

Commit 556ee06

Browse files
committed
tmp
1 parent 3541a48 commit 556ee06

2 files changed

Lines changed: 24 additions & 121 deletions

File tree

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ jobs:
569569

570570
pr-preview:
571571
name: Creator Hub Build
572+
needs: [build]
572573
strategy:
573574
fail-fast: true
574575
matrix:
@@ -588,6 +589,12 @@ jobs:
588589
node-version: 22
589590
cache: 'npm'
590591

592+
- name: Install @dcl/inspector@branch package
593+
run: npm install "${{ secrets.SDK_TEAM_S3_BASE_URL }}/${{ needs.build.outputs.decentraland_inspector_s3_bucket_key }}"
594+
working-directory: ${{ env.WORKING_DIRECTORY }}
595+
env:
596+
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
597+
591598
- name: 'Install dependencies'
592599
run: npm ci
593600
working-directory: ${{ env.WORKING_DIRECTORY }}
@@ -607,6 +614,13 @@ jobs:
607614
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
608615
VITE_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
609616

617+
- name: copy creator-hub package.json to root to run semantic-version
618+
if: ${{ github.event.pull_request.number }}
619+
run: |
620+
ls -l
621+
mv package.json package.json.bak
622+
cp ${{ env.WORKING_DIRECTORY }}/package.json package.json
623+
610624
- name: Generate release version
611625
id: version
612626
uses: paulhatch/semantic-version@v5.4.0
@@ -621,6 +635,12 @@ jobs:
621635
user_format_type: "json"
622636
change_path: ${{ env.WORKING_DIRECTORY }}
623637

638+
- name: move versioned package.json to creator-hub package
639+
if: ${{ github.event.pull_request.number }}
640+
run: |
641+
mv package.json ${{ env.WORKING_DIRECTORY }}
642+
mv package.json.bak package.json
643+
624644
# Download 'SSLcom/esigner-codesign' to a folder called 'esigner-codesign' inside creator-hub package
625645
- name: Checkout esigner-codesign repository (Windows)
626646
if: ${{github.ref == 'refs/heads/main' && matrix.os == 'windows-latest' && !github.event.pull_request.number}}
@@ -629,6 +649,10 @@ jobs:
629649
repository: 'SSLcom/esigner-codesign'
630650
path: ${{ env.WORKING_DIRECTORY }}/esigner-codesign
631651

652+
- name: check version in package.json
653+
if: ${{ github.event.pull_request.number }}
654+
run: cat package.json
655+
632656
- name: Compile artifacts ${{ github.event.pull_request.number && ' ' || 'and upload them to github release' }}
633657
# I use this action because it is capable of retrying multiple times if there are any issues with the distribution server
634658
uses: nick-fields/retry@v3

.github/workflows/creator-hub.yml

Lines changed: 0 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -112,124 +112,3 @@ jobs:
112112
env:
113113
NODE_OPTIONS: "--max-old-space-size=8192"
114114
ENABLE_E2E_TESTS: true
115-
116-
# ============================================================================
117-
# Release Jobs (Only run on main branch)
118-
# ============================================================================
119-
120-
drop-pre-release:
121-
name: Drop Pre-releases
122-
runs-on: ubuntu-latest
123-
needs: [ typechecking, tests ]
124-
if: github.ref == 'refs/heads/main'
125-
permissions:
126-
contents: write
127-
steps:
128-
- uses: actions/checkout@v4
129-
- uses: actions/setup-node@v4
130-
with:
131-
cache: 'npm'
132-
133-
- name: Drop pre releases
134-
uses: sgpublic/delete-release-action@v1.2
135-
with:
136-
pre-release-drop: true
137-
pre-release-keep-count: -1
138-
pre-release-drop-tag: true
139-
env:
140-
GITHUB_TOKEN: ${{ secrets.github_token }}
141-
142-
build-and-release:
143-
name: Build and Release
144-
strategy:
145-
fail-fast: true
146-
matrix:
147-
os: [ macos-latest, windows-latest ]
148-
runs-on: ${{ matrix.os }}
149-
needs: [ drop-pre-release ]
150-
if: github.ref == 'refs/heads/main'
151-
permissions:
152-
contents: write
153-
issues: write
154-
pull-requests: write
155-
steps:
156-
- uses: actions/checkout@v4
157-
with:
158-
fetch-depth: 0
159-
fetch-tags: true
160-
161-
- uses: actions/setup-node@v4
162-
with:
163-
node-version: 22
164-
cache: 'npm'
165-
cache-dependency-path: ${{ env.WORKING_DIRECTORY }}/package-lock.json
166-
167-
- name: Install dependencies
168-
run: npm ci
169-
working-directory: ${{ env.WORKING_DIRECTORY }}
170-
env:
171-
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
172-
173-
- name: Build application
174-
run: echo MODE=production && npm run build
175-
working-directory: ${{ env.WORKING_DIRECTORY }}
176-
env:
177-
NODE_OPTIONS: "--max-old-space-size=8192"
178-
MODE: production
179-
VITE_SEGMENT_CREATORS_HUB_API_KEY: ${{ secrets.VITE_SEGMENT_CREATORS_HUB_API_KEY }}
180-
VITE_SEGMENT_INSPECTOR_API_KEY: ${{ secrets.VITE_SEGMENT_INSPECTOR_API_KEY }}
181-
VITE_ALLOWED_EXTERNAL_ORIGINS: ${{ secrets.VITE_ALLOWED_EXTERNAL_ORIGINS }}
182-
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
183-
VITE_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
184-
185-
- name: Generate release version
186-
id: version
187-
uses: paulhatch/semantic-version@v5.4.0
188-
with:
189-
tag_prefix: ""
190-
version_format: ${major}.${minor}.${patch}
191-
major_pattern: "/^(major|breaking).+/"
192-
minor_pattern: "/^(minor|feat).+/"
193-
bump_each_commit: false
194-
bump_each_commit_patch_pattern: "/^(patch|fix).+/"
195-
search_commit_body: true
196-
user_format_type: "json"
197-
198-
- name: Checkout esigner-codesign repository (Windows)
199-
if: matrix.os == 'windows-latest'
200-
uses: actions/checkout@v3
201-
with:
202-
repository: 'SSLcom/esigner-codesign'
203-
path: esigner-codesign
204-
205-
- name: Build and publish artifacts
206-
uses: nick-fields/retry@v3
207-
with:
208-
timeout_minutes: 60
209-
max_attempts: 6
210-
retry_wait_seconds: 15
211-
retry_on: error
212-
shell: 'bash'
213-
command: npx electron-builder --config electron-builder.cjs --config.extraMetadata.version=${{ steps.version.outputs.version }} ${{ matrix.os == 'macos-latest' && '--config.mac.notarize=true' || '' }} --publish always
214-
working-directory: ${{ env.WORKING_DIRECTORY }}
215-
env:
216-
USE_HARD_LINKS: false
217-
CSC_LINK: ${{ secrets.MACOS_CSC_LINK }}
218-
CSC_KEY_PASSWORD: ${{ secrets.MACOS_CSC_KEY_PASSWORD }}
219-
APPLE_ID: ${{ secrets.MACOS_NOTARIZATION_APPLE_ID }}
220-
APPLE_TEAM_ID: ${{ secrets.MACOS_NOTARIZATION_TEAM_ID }}
221-
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.MACOS_NOTARIZATION_PWD }}
222-
GH_TOKEN: ${{ secrets.github_token }}
223-
EP_PRE_RELEASE: true
224-
CODE_SIGN_SCRIPT_PATH: ${{ matrix.os == 'windows-latest' && format('{0}\\esigner-codesign\\dist\\index.js', github.workspace) || '' }}
225-
INPUT_COMMAND: "sign"
226-
INPUT_FILE_PATH: "${{ github.workspace }}\\${{ env.WORKING_DIRECTORY }}\\dist\\Decentraland Creator Hub-${{ steps.version.outputs.version }}-win-x64.exe"
227-
INPUT_OVERRIDE: "true"
228-
INPUT_MALWARE_BLOCK: "false"
229-
INPUT_CLEAN_LOGS: "false"
230-
INPUT_JVM_MAX_MEMORY: "1024M"
231-
INPUT_ENVIRONMENT_NAME: "PROD"
232-
INPUT_USERNAME: ${{ secrets.ES_USERNAME }}
233-
INPUT_PASSWORD: ${{ secrets.ES_PASSWORD }}
234-
INPUT_TOTP_SECRET: ${{ secrets.ES_TOTP_SECRET }}
235-
INPUT_CREDENTIAL_ID: ${{ secrets.WINDOWS_CREDENTIAL_ID_SIGNER }}

0 commit comments

Comments
 (0)