-
-
Notifications
You must be signed in to change notification settings - Fork 207
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 simplex-group
- Loading branch information
Showing
144 changed files
with
2,095 additions
and
1,244 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -27,6 +27,9 @@ on: | |
strict: | ||
type: boolean | ||
default: false | ||
cache: | ||
type: boolean | ||
default: true | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -57,6 +60,12 @@ jobs: | |
echo "BUILD_INSIDERS=true" >> "$GITHUB_ENV" | ||
echo "EXTRA_FLAGS=""$EXTRA_FLAGS" --insiders"" >> "$GITHUB_ENV" | ||
- name: Set Metadata for International Builds | ||
if: inputs.lang != 'en' | ||
run: | | ||
echo "GITREVISIONDATE=false" >> "$GITHUB_ENV" | ||
echo "GITAUTHORS=false" >> "$GITHUB_ENV" | ||
- name: Set Metadata for Offline Mode | ||
if: inputs.config == 'offline' | ||
run: | | ||
|
@@ -113,6 +122,7 @@ jobs: | |
- name: Restore Privacy Plugin Cache | ||
uses: actions/cache/[email protected] | ||
id: privacy_cache_restore | ||
if: inputs.cache | ||
with: | ||
key: privacy-cache-${{ inputs.repo }}-${{ hashfiles('.cache/plugin/privacy/**') }} | ||
path: | | ||
|
@@ -125,6 +135,7 @@ jobs: | |
- name: Restore Social Plugin Cache | ||
uses: actions/cache/[email protected] | ||
id: social_cache_restore | ||
if: inputs.cache | ||
with: | ||
key: social-cache-${{ inputs.repo }}-${{ inputs.lang }}-${{ hashfiles('.cache/plugin/social/manifest.json') }} | ||
path: | | ||
|
@@ -137,6 +148,7 @@ jobs: | |
- name: Restore Optimize Plugin Cache | ||
uses: actions/cache/[email protected] | ||
id: optimize_cache_restore | ||
if: inputs.cache | ||
with: | ||
key: optimize-cache-${{ inputs.repo }}-${{ hashfiles('.cache/plugin/optimize/manifest.json') }} | ||
path: | | ||
|
@@ -170,7 +182,7 @@ jobs: | |
- name: Find Privacy Plugin Cache | ||
uses: actions/cache/[email protected] | ||
if: steps.privacy_cache_restore.outputs.cache-hit != 'true' | ||
if: steps.privacy_cache_restore.outputs.cache-hit != 'true' && inputs.cache | ||
id: privacy_cache_test | ||
with: | ||
key: privacy-cache-privacyguides/privacyguides.org-${{ hashfiles('.cache/plugin/privacy/**') }} | ||
|
@@ -180,7 +192,7 @@ jobs: | |
- name: Find Social Plugin Cache | ||
uses: actions/cache/[email protected] | ||
if: steps.social_cache_restore.outputs.cache-hit != 'true' | ||
if: steps.social_cache_restore.outputs.cache-hit != 'true' && inputs.cache | ||
id: social_cache_test | ||
with: | ||
key: social-cache-privacyguides/privacyguides.org-${{ inputs.lang }}-${{ hashfiles('.cache/plugin/social/manifest.json') }} | ||
|
@@ -191,7 +203,7 @@ jobs: | |
- name: Find Optimize Plugin Cache | ||
uses: actions/cache/[email protected] | ||
if: steps.optimize_cache_restore.outputs.cache-hit != 'true' | ||
if: steps.optimize_cache_restore.outputs.cache-hit != 'true' && inputs.cache | ||
id: optimize_cache_test | ||
with: | ||
key: optimize-cache-privacyguides/privacyguides.org-${{ hashfiles('.cache/plugin/optimize/manifest.json') }} | ||
|
@@ -201,14 +213,14 @@ jobs: | |
- name: Save Privacy Plugin Cache | ||
uses: actions/cache/[email protected] | ||
if: steps.privacy_cache_test.outputs.cache-hit != 'true' | ||
if: steps.privacy_cache_test.outputs.cache-hit != 'true' && inputs.cache | ||
with: | ||
key: privacy-cache-${{ inputs.repo }}-${{ hashfiles('.cache/plugin/privacy/**') }} | ||
path: .cache/plugin/privacy | ||
|
||
- name: Save Social Plugin Cache | ||
uses: actions/cache/[email protected] | ||
if: steps.social_cache_test.outputs.cache-hit != 'true' | ||
if: steps.social_cache_test.outputs.cache-hit != 'true' && inputs.cache | ||
with: | ||
key: social-cache-${{ inputs.repo }}-${{ inputs.lang }}-${{ hashfiles('.cache/plugin/social/manifest.json') }} | ||
path: | | ||
|
@@ -217,7 +229,7 @@ jobs: | |
- name: Save Optimize Plugin Cache | ||
uses: actions/cache/[email protected] | ||
if: steps.optimize_cache_test.outputs.cache-hit != 'true' | ||
if: steps.optimize_cache_test.outputs.cache-hit != 'true' && inputs.cache | ||
with: | ||
key: optimize-cache-${{ inputs.repo }}-${{ hashfiles('.cache/plugin/optimize/manifest.json') }} | ||
path: .cache/plugin/optimize | ||
|
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 |
---|---|---|
|
@@ -51,14 +51,3 @@ jobs: | |
with: | ||
source-repo: "[email protected]:privacyguides/privacyguides.org.git" | ||
destination-repo: "[email protected]:privacyguides/privacyguides.org.git" | ||
|
||
sourcehut: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Mirror to SourceHut | ||
uses: wearerequired/git-mirror-action@v1 | ||
env: | ||
SSH_PRIVATE_KEY: ${{ secrets.ACTIONS_SSH_KEY }} | ||
with: | ||
source-repo: "[email protected]:privacyguides/privacyguides.org.git" | ||
destination-repo: "[email protected]:~jonaharagon/privacyguides.org" |
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 |
---|---|---|
|
@@ -87,7 +87,7 @@ jobs: | |
echo "pr_number=$(cat metadata/NR)" >> "$GITHUB_OUTPUT" | ||
echo "sha=$(cat metadata/SHA)" >> "$GITHUB_OUTPUT" | ||
deploy: | ||
deploy_netlify: | ||
needs: metadata | ||
permissions: | ||
contents: read | ||
|
@@ -99,13 +99,27 @@ jobs: | |
secrets: | ||
NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }} | ||
|
||
deploy_garage: | ||
needs: metadata | ||
permissions: | ||
contents: read | ||
|
||
uses: privacyguides/webserver/.github/workflows/deploy-garage-preview.yml@main | ||
with: | ||
alias: ${{ needs.metadata.outputs.pr_number }} | ||
bucket: ${{ vars.PREVIEW_GARAGE_BUCKET }} | ||
hostname: ${{ vars.PREVIEW_GARAGE_HOSTNAME }} | ||
secrets: | ||
PREVIEW_GARAGE_KEY_ID: ${{ secrets.PREVIEW_GARAGE_KEY_ID }} | ||
PREVIEW_GARAGE_SECRET_KEY: ${{ secrets.PREVIEW_GARAGE_SECRET_KEY }} | ||
|
||
comment: | ||
permissions: | ||
pull-requests: write | ||
needs: [deploy, metadata] | ||
needs: [deploy_netlify, metadata] | ||
runs-on: ubuntu-latest | ||
env: | ||
address: ${{ needs.deploy.outputs.address }} | ||
address: ${{ needs.deploy_netlify.outputs.address }} | ||
steps: | ||
- uses: thollander/[email protected] | ||
with: | ||
|
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
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
Oops, something went wrong.