Skip to content

Commit

Permalink
[FB] Workflow | Add Personal access token to deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
surapunoyousei committed Mar 15, 2024
1 parent fda6ee7 commit e72d474
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 3 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/daily-build-with-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
sparse-checkout: 'browser/config/version_display.txt'
- name: Get Display Version
id: get
Expand All @@ -42,6 +43,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
sparse-checkout: 'browser/config/version.txt'
- name: Get Inside Version
id: get
Expand Down Expand Up @@ -69,13 +71,17 @@ jobs:
profgen: true
aarch64: false
zstd: true

secrets:
token: ${{ secrets.PAT }}

Part2-win-x86_64-gen-profdata-and-jarlog:
needs: Part1-win-x86_64-build-with-profgen-zstd
uses: ./.github/workflows/window-generate-profile-data-and-jarlog.yml
with:
browser-artifact-name: floorp-windows-x86_64-build-with-profgen-zstd
arch: x86_64
secrets:
token: ${{ secrets.PAT }}

Part3-win-x86_64-build-with-profdata-and-jarlog:
needs: [Part2-win-x86_64-gen-profdata-and-jarlog, get-buildid]
Expand All @@ -87,6 +93,8 @@ jobs:
profdata_jarlog_artifact_name: "floorp-windows-x86_64-profdata-and-jarlog"
out_artifact_name: please-use-this-floorp-windows-x86_64-package-build-with-profdata-and-jarlog
MOZ_BUILD_DATE: ${{needs.get-buildid.outputs.buildids}}
secrets:
token: ${{ secrets.PAT }}

Part4-win-x86_64-gen-update-xml:
needs: [get-display-version, get-buildid, get-inside-version, Part3-win-x86_64-build-with-profdata-and-jarlog]
Expand Down Expand Up @@ -135,6 +143,8 @@ jobs:
beta: true
mar: true
MOZ_BUILD_DATE: ${{needs.get-buildid.outputs.buildids}}
secrets:
token: ${{ secrets.PAT }}

Part2-linux-x86_64-gen-update-xml:
runs-on: 'ubuntu-latest'
Expand Down Expand Up @@ -181,10 +191,13 @@ jobs:
profgen: true
secrets:
MACOS_CROSS_TOOLS_KEY: ${{ secrets.MACOS_CROSS_TOOLS_KEY }}
token: ${{ secrets.PAT }}

Part2-macOS-Universal-gen-profdata-and-jarlog:
uses: ./.github/workflows/macOS-generate-profile-data-and-jarlog.yml
needs: Part1-macOS-Universal-build-with-profgen
secrets:
token: ${{ secrets.PAT }}

Part3-macOS-Universal-build-with-profdata-and-jarlog:
uses: ./.github/workflows/macOS-Universal.yml
Expand All @@ -195,6 +208,7 @@ jobs:
MOZ_BUILD_DATE: ${{needs.get-buildid.outputs.buildids}}
secrets:
MACOS_CROSS_TOOLS_KEY: ${{ secrets.MACOS_CROSS_TOOLS_KEY }}
token: ${{ secrets.PAT }}

Part4-macOS-Universal-package-and-sign:
uses: ./.github/workflows/macOS-integration.yml
Expand All @@ -214,6 +228,7 @@ jobs:
macOS_AppleAccountId: ${{ secrets.macOS_AppleAccountId }}
macOS_AppleTeamId: ${{ secrets.macOS_AppleTeamId }}
macOS_AppleAccountAppSpecificPassword: ${{ secrets.macOS_AppleAccountAppSpecificPassword }}
token: ${{ secrets.PAT }}

##################################################################### Deployments #######################################################################################################
Deployments:
Expand Down
24 changes: 23 additions & 1 deletion .github/workflows/deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
sparse-checkout: 'browser/config/version_display.txt'
- name: Get Display Version
id: get
Expand All @@ -49,6 +50,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
sparse-checkout: 'browser/config/version.txt'
- name: Get Inside Version
id: get
Expand Down Expand Up @@ -77,13 +79,17 @@ jobs:
profgen: true
aarch64: false
zstd: true
secrets:
token: ${{ secrets.PAT }}

Part2-win-x86_64-gen-profdata-and-jarlog:
needs: Part1-win-x86_64-build-with-profgen-zstd
uses: ./.github/workflows/window-generate-profile-data-and-jarlog.yml
with:
browser-artifact-name: floorp-windows-x86_64-build-with-profgen-zstd
arch: x86_64
secrets:
token: ${{ secrets.PAT }}

Part3-win-x86_64-build-with-profdata-and-jarlog:
needs: [Part2-win-x86_64-gen-profdata-and-jarlog, get-buildid]
Expand All @@ -96,6 +102,8 @@ jobs:
MOZ_BUILD_DATE: ${{needs.get-buildid.outputs.buildids}}
release-note-url: ${{ inputs.release-note-url }}
release-note-url-ja: ${{ inputs.release-note-url-ja }}
secrets:
token: ${{ secrets.PAT }}

################################################################ ↑ Windows x86_64 Build ###################################################################################

Expand All @@ -106,14 +114,18 @@ jobs:
aarch64: false
build32bit: true
zstd: true
secrets:
token: ${{ secrets.PAT }}

Part2-win-x86-gen-profdata-and-jarlog:
needs: Part1-win-x86-build-with-profgen-zstd
uses: ./.github/workflows/window-generate-profile-data-and-jarlog.yml
with:
browser-artifact-name: floorp-windows-x86-build-with-profgen-zstd
arch: x86

secrets:
token: ${{ secrets.PAT }}

Part3-win-x86-build-with-profdata-and-jarlog:
needs: [get-buildid, Part2-win-x86-gen-profdata-and-jarlog]
uses: ./.github/workflows/windows-build.yml
Expand All @@ -125,6 +137,8 @@ jobs:
MOZ_BUILD_DATE: ${{needs.get-buildid.outputs.buildids}}
release-note-url: ${{ inputs.release-note-url }}
release-note-url-ja: ${{ inputs.release-note-url-ja }}
secrets:
token: ${{ secrets.PAT }}

################################################################ ↑ Windows x86 Build ####################################################################################

Expand All @@ -138,6 +152,8 @@ jobs:
MOZ_BUILD_DATE: ${{needs.get-buildid.outputs.buildids}}
release-note-url: ${{ inputs.release-note-url }}
release-note-url-ja: ${{ inputs.release-note-url-ja }}
secrets:
token: ${{ secrets.PAT }}

################################################################ ↑ Linux x86_64 Build ####################################################################################
Part1-linux-aarch64-build:
Expand All @@ -150,6 +166,8 @@ jobs:
MOZ_BUILD_DATE: ${{needs.get-buildid.outputs.buildids}}
release-note-url: ${{ inputs.release-note-url }}
release-note-url-ja: ${{ inputs.release-note-url-ja }}
secrets:
token: ${{ secrets.PAT }}

################################################ ↑ Linux AArch64 Build ################################################

Expand All @@ -161,10 +179,13 @@ jobs:
profgen: true
secrets:
MACOS_CROSS_TOOLS_KEY: ${{ secrets.MACOS_CROSS_TOOLS_KEY }}
token: ${{ secrets.PAT }}

Part2-macOS-Universal-gen-profdata-and-jarlog:
needs: Part1-macOS-Universal-build-with-profgen
uses: ./.github/workflows/macOS-generate-profile-data-and-jarlog.yml
secrets:
token: ${{ secrets.PAT }}

Part3-macOS-Universal-build-with-profdata-and-jarlog:
uses: ./.github/workflows/macOS-Universal.yml
Expand All @@ -177,6 +198,7 @@ jobs:
release-note-url-ja: ${{ inputs.release-note-url-ja }}
secrets:
MACOS_CROSS_TOOLS_KEY: ${{ secrets.MACOS_CROSS_TOOLS_KEY }}
token: ${{ secrets.PAT }}

Part4-macOS-Universal-package-and-sign:
uses: ./.github/workflows/macOS-integration.yml
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
- uses: actions/checkout@v4
name: Clone 🧬
with:
token: ${{ secrets.PAT }}
submodules: 'recursive'

- name: Change PPA mirror servers
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/linux-x64-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Change PPA mirror servers
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/macOS-Universal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ jobs:
name: Clone 🧬
with:
submodules: 'recursive'
token: ${{ secrets.PAT }}

- name: Setup Disk & Swap Space 💿
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
name: Clone 🧬
with:
submodules: 'recursive'
token: ${{ secrets.PAT }}

- name: Check Arch type
shell: bash
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/macOS-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: 'recursive'
token: ${{ secrets.PAT }}

- name: download M1 build artifact 📥
uses: actions/download-artifact@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ jobs:
- uses: actions/checkout@v4
name: Clone 🧬
with:
submodules: 'recursive'
submodules: 'recursive'
token: ${{ secrets.PAT }}

- name: Setup 🪛
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ jobs:
name: Clone 🧬
with:
submodules: 'recursive'
token: ${{ secrets.PAT }}

- name: Setup Disk & Swap Space 💿
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/wrapper_linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ jobs:
uses: ./.github/workflows/linux-build.yml
with:
aarch64: ${{inputs.aarch64}}
secrets:
token: ${{ secrets.PAT }}
2 changes: 2 additions & 0 deletions .github/workflows/wrapper_windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ jobs:
profgen: ${{inputs.profgen}}
aarch64: ${{inputs.aarch64}}
build32bit: ${{inputs.bit-32}}
secrets:
token: ${{ secrets.PAT }}

0 comments on commit e72d474

Please sign in to comment.