-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into michal/subscription-purchase
- Loading branch information
Showing
352 changed files
with
23,448 additions
and
6,613 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
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 |
---|---|---|
|
@@ -38,6 +38,10 @@ on: | |
description: "Asana release task URL" | ||
required: true | ||
type: string | ||
branch: | ||
description: "Branch name" | ||
required: false | ||
type: string | ||
secrets: | ||
BUILD_CERTIFICATE_BASE64: | ||
required: true | ||
|
@@ -65,8 +69,6 @@ on: | |
required: true | ||
NETP_NOTIFICATIONS_REVIEW_PROVISION_PROFILE_BASE64: | ||
required: true | ||
SSH_PRIVATE_KEY_FIND_IN_PAGE: | ||
required: true | ||
APPLE_API_KEY_BASE64: | ||
required: true | ||
APPLE_API_KEY_ID: | ||
|
@@ -89,7 +91,7 @@ jobs: | |
|
||
name: Export Notarized App | ||
|
||
runs-on: macos-13 | ||
runs-on: macos-13-xlarge | ||
|
||
outputs: | ||
app-version: ${{ steps.set-outputs.outputs.app-version }} | ||
|
@@ -101,15 +103,11 @@ jobs: | |
|
||
steps: | ||
|
||
- name: Register SSH keys for submodules access | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY_FIND_IN_PAGE }} | ||
|
||
- name: Check out the code | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
ref: ${{ inputs.branch || github.ref_name }} | ||
|
||
- name: Install Apple Developer ID Application certificate | ||
uses: ./.github/actions/install-certs-and-profiles | ||
|
@@ -161,13 +159,13 @@ jobs: | |
echo "app-name=${{ env.app-name }}" >> $GITHUB_OUTPUT | ||
- name: Upload app artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: DuckDuckGo-${{ env.release-type }}-${{ env.app-version }}.app | ||
path: ${{ github.workspace }}/release/DuckDuckGo-${{ env.app-version }}.zip | ||
|
||
- name: Upload dSYMs artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: DuckDuckGo-${{ env.release-type }}-dSYM-${{ env.app-version }} | ||
path: ${{ github.workspace }}/release/DuckDuckGo-${{ env.app-version }}-dSYM.zip | ||
|
@@ -211,7 +209,7 @@ jobs: | |
steps: | ||
|
||
- name: Fetch app bundle | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: DuckDuckGo-${{ env.release-type }}-${{ env.app-version }}.app | ||
path: ${{ github.workspace }}/dmg | ||
|
@@ -240,7 +238,7 @@ jobs: | |
"dmg" | ||
- name: Upload DMG artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: DuckDuckGo-${{ env.release-type }}-${{ env.app-version }}.dmg | ||
path: ${{ github.workspace }}/duckduckgo*-${{ env.app-version }}.dmg | ||
|
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,120 @@ | ||
name: Bump Internal Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
asana-task-url: | ||
description: "Asana release task URL" | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
|
||
update_embedded_files: | ||
|
||
name: Update Embedded Files | ||
|
||
runs-on: macos-13-xlarge | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
|
||
- name: Assert release branch | ||
run: | | ||
case "${{ github.ref }}" in | ||
refs/heads/release/*) ;; | ||
*) echo "👎 Not a release branch"; exit 1 ;; | ||
esac | ||
- name: Check out the code | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Select Xcode | ||
run: sudo xcode-select -s /Applications/Xcode_$(<.xcode-version).app/Contents/Developer | ||
|
||
- name: Prepare fastlane | ||
run: bundle install | ||
|
||
- name: Update embedded files | ||
env: | ||
APPLE_API_KEY_BASE64: ${{ secrets.APPLE_API_KEY_BASE64 }} | ||
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }} | ||
APPLE_API_KEY_ISSUER: ${{ secrets.APPLE_API_KEY_ISSUER }} | ||
run: | | ||
git config --global user.name "Dax the Duck" | ||
git config --global user.email "[email protected]" | ||
bundle exec fastlane update_embedded_files | ||
run_tests: | ||
|
||
name: Run Tests | ||
|
||
needs: update_embedded_files | ||
uses: ./.github/workflows/pr.yml | ||
secrets: | ||
ASANA_ACCESS_TOKEN: ${{ secrets.ASANA_ACCESS_TOKEN }} | ||
|
||
increment_build_number: | ||
|
||
name: Increment Build Number | ||
|
||
needs: run_tests | ||
runs-on: macos-13-xlarge | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
|
||
- name: Check out the code | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
ref: ${{ github.ref_name }} | ||
|
||
- name: Select Xcode | ||
run: sudo xcode-select -s /Applications/Xcode_$(<.xcode-version).app/Contents/Developer | ||
|
||
- name: Prepare fastlane | ||
run: bundle install | ||
|
||
- name: Increment build number | ||
env: | ||
APPLE_API_KEY_BASE64: ${{ secrets.APPLE_API_KEY_BASE64 }} | ||
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }} | ||
APPLE_API_KEY_ISSUER: ${{ secrets.APPLE_API_KEY_ISSUER }} | ||
run: | | ||
git config --global user.name "Dax the Duck" | ||
git config --global user.email "[email protected]" | ||
bundle exec fastlane bump_internal_release update_embedded_files:false | ||
prepare_release: | ||
name: Prepare Release | ||
needs: increment_build_number | ||
uses: ./.github/workflows/release.yml | ||
with: | ||
asana-task-url: ${{ github.event.inputs.asana-task-url }} | ||
secrets: | ||
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }} | ||
P12_PASSWORD: ${{ secrets.P12_PASSWORD }} | ||
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }} | ||
REVIEW_PROVISION_PROFILE_BASE64: ${{ secrets.REVIEW_PROVISION_PROFILE_BASE64 }} | ||
RELEASE_PROVISION_PROFILE_BASE64: ${{ secrets.RELEASE_PROVISION_PROFILE_BASE64 }} | ||
DBP_AGENT_RELEASE_PROVISION_PROFILE_BASE64: ${{ secrets.DBP_AGENT_RELEASE_PROVISION_PROFILE_BASE64 }} | ||
DBP_AGENT_REVIEW_PROVISION_PROFILE_BASE64: ${{ secrets.DBP_AGENT_REVIEW_PROVISION_PROFILE_BASE64 }} | ||
NETP_SYSEX_RELEASE_PROVISION_PROFILE_BASE64_V2: ${{ secrets.NETP_SYSEX_RELEASE_PROVISION_PROFILE_BASE64_V2 }} | ||
NETP_SYSEX_REVIEW_PROVISION_PROFILE_BASE64_V2: ${{ secrets.NETP_SYSEX_REVIEW_PROVISION_PROFILE_BASE64_V2 }} | ||
NETP_AGENT_RELEASE_PROVISION_PROFILE_BASE64_V2: ${{ secrets.NETP_AGENT_RELEASE_PROVISION_PROFILE_BASE64_V2 }} | ||
NETP_AGENT_REVIEW_PROVISION_PROFILE_BASE64_V2: ${{ secrets.NETP_AGENT_REVIEW_PROVISION_PROFILE_BASE64_V2 }} | ||
NETP_NOTIFICATIONS_RELEASE_PROVISION_PROFILE_BASE64: ${{ secrets.NETP_NOTIFICATIONS_RELEASE_PROVISION_PROFILE_BASE64 }} | ||
NETP_NOTIFICATIONS_REVIEW_PROVISION_PROFILE_BASE64: ${{ secrets.NETP_NOTIFICATIONS_REVIEW_PROVISION_PROFILE_BASE64 }} | ||
APPLE_API_KEY_BASE64: ${{ secrets.APPLE_API_KEY_BASE64 }} | ||
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }} | ||
APPLE_API_KEY_ISSUER: ${{ secrets.APPLE_API_KEY_ISSUER }} | ||
ASANA_ACCESS_TOKEN: ${{ secrets.ASANA_ACCESS_TOKEN }} | ||
MM_HANDLES_BASE64: ${{ secrets.MM_HANDLES_BASE64 }} | ||
MM_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | ||
SSH_PRIVATE_KEY_FASTLANE_MATCH: ${{ secrets.SSH_PRIVATE_KEY_FASTLANE_MATCH }} |
Oops, something went wrong.