-
-
Notifications
You must be signed in to change notification settings - Fork 3
Update release workflows #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
00f18f8
Update release workflows
Shellishack ed36189
Update workflows
Shellishack d1b6684
Update build workflows and packages
Shellishack c5330d0
Update workflows
Shellishack 2e50e86
Remove desktop workspace due to packager not recognizing hoisted modules
Shellishack 123c11e
Update mobile build workflow
Shellishack 3bbf462
Update release workflows
Shellishack 8e6b002
Update readme
Shellishack File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
| name: Build Pulse CLI | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: ["main"] | ||
| paths: | ||
| - "npm-packages/cli/**" | ||
| - ".github/workflows/build-cli.yml" | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.js 20 | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
|
|
||
| - name: Install dependencies | ||
| run: npm i | ||
| working-directory: npm-packages/cli | ||
|
|
||
| - name: Build @pulse-editor/cli | ||
| run: npm run build | ||
| working-directory: npm-packages/cli | ||
This file contains hidden or 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,37 @@ | ||
| name: Build Desktop | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: ["main"] | ||
| paths: | ||
| - "desktop/**" | ||
| - "web/**" | ||
| - ".github/workflows/build-desktop.yml" | ||
| jobs: | ||
| build: | ||
| strategy: | ||
| matrix: | ||
| os: [windows-latest, ubuntu-latest, macos-latest] | ||
| runs-on: ${{ matrix.os }} | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
|
|
||
| - name: Install web dependencies | ||
| run: npm install --workspace=web | ||
|
|
||
| - name: Install desktop dependencies | ||
| run: npm install --workspace=desktop | ||
|
|
||
| - name: Rebuild native modules | ||
| run: npm run rebuild-native --workspace=desktop | ||
|
|
||
| - name: Build Electron App | ||
| run: | | ||
| npm run desktop-build | ||
|
||
This file contains hidden or 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,65 @@ | ||
| name: Build Mobile | ||
|
|
||
| env: | ||
| ANDROID_SDK_VERSION: "35.0.0" | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: ["main"] | ||
| paths: | ||
| - "web/**" | ||
| - "android/**" | ||
| - ".github/workflows/build-mobile.yml" | ||
|
|
||
| jobs: | ||
| build: | ||
| strategy: | ||
| matrix: | ||
| target: [android] | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up JDK 17 | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| java-version: "17" | ||
| distribution: "temurin" | ||
|
|
||
| - name: Setup Android SDK | ||
| uses: android-actions/setup-android@v3 | ||
|
|
||
| - name: Install Android SDK build tools | ||
| run: | | ||
| sdkmanager "build-tools;${{env.ANDROID_SDK_VERSION}}" | ||
| echo "$ANDROID_SDK_ROOT/build-tools/${{env.ANDROID_SDK_VERSION}}" >> $GITHUB_PATH | ||
|
|
||
| - name: Get Keystore | ||
| run: | | ||
| mkdir .keystore | ||
| echo ${{ secrets.ANDROID_KEYSTORE }} | base64 --decode > android/.keystore/keystore.jks | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
|
|
||
| - name: Install web dependencies | ||
| run: npm install --workspace=web | ||
|
|
||
| - name: Install mobile dependencies | ||
| run: npm install --workspace=mobile | ||
|
|
||
| - name: Build Web App | ||
| run: npm run build | ||
|
|
||
| - name: Change Android Project Permission | ||
| run: chmod +x android/gradlew | ||
|
|
||
| - name: Sync Capacitor App | ||
| run: npx cap sync | ||
|
|
||
| - name: Build Capacitor App | ||
| run: npx cap build android --keystorepath .keystore/keystore.jks --keystorepass ${{ secrets.ANDROID_KEYSTORE_PASS }} --androidreleasetype APK |
This file contains hidden or 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,35 @@ | ||
| # This workflow will run tests using node and then publish a package to GitHub Packages | ||
|
|
||
| name: Build NPM Packages | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: ["main"] | ||
| paths: | ||
| - "npm-packages/shared-utils/**" | ||
| - "npm-packages/react-api/**" | ||
| - ".github/workflows/build-desktop.yml" | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.js 20 | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
|
|
||
| - name: Install dependencies | ||
| run: npm i --workspace=npm-packages/shared-utils && npm i --workspace=npm-packages/react-api | ||
|
|
||
| - name: Build @pulse-editor/shared-utils | ||
| run: npm run build --workspace=npm-packages/shared-utils | ||
|
|
||
| - name: Build @pulse-editor/react-api | ||
| run: npm run build --workspace=npm-packages/react-api |
This file contains hidden or 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,35 @@ | ||
| name: Build Web | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: ["main"] | ||
| paths: | ||
| - "web/**" | ||
| - ".github/workflows/build-web.yml" | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| # echo node version to the log | ||
| - name: Echo Node.js version | ||
| run: node --version | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
|
|
||
| # echo node version to the log | ||
| - name: Echo npm version | ||
| run: npm --version | ||
|
|
||
| - name: Install web dependencies | ||
| run: npm install --workspace=web | ||
|
|
||
| - name: Build web app | ||
| run: | | ||
| npm run web-build | ||
|
||
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.